Have ideas to improve npm?Join in the discussion! »

    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'));
    

    Install

    npm i is-prime-value

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    3.92 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar