is-prime-value

1.0.0 • Public • Published

isPrime

small package to check if given number is a prime number.

Returns true if the given number is prime number.

Installation

npm install is-prime-value

Example

Following is basic example.

    const isPrime = require('is-prime-value');
    console.log(isPrime(47));
    console.log(isPrime(1));
    console.log(isPrime(100));
    console.log(isPrime('2'));

Dependents (0)

Package Sidebar

Install

npm i is-prime-value

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

3.92 kB

Total Files

5

Last publish

Collaborators

  • akshaypatil1