1.1.1 ā€¢ Published 6 years ago

primexpr v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

primexpr

NPM Build Status NPM

Check if number is prime using only RegExp!

Why?

https://iluxonchik.github.io/regular-expression-check-if-number-is-prime/

Usage

Get the package via NPM: npm install primexpr.

const isPrime = require('primexpr');

const PRIME = 10007;
console.log(isPrime(PRIME)); //true

const NOT_PRIME = 6;
console.log(isPrime(NOT_PRIME)); //false

This package is so awesome! How can I help?

šŸ˜‚

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago