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

    is-number-prime

    1.0.1 • Public • Published

    is-number-prime

    Build Status

    Checks if number is prime or not.

    Installation

    npm install is-number-prime --save
    

    Usage

    import isNumberPrime from 'is-number-prime';
    isNumberPrime(13); // true
    isNumberPrime(10); // false
    isNumberPrime(15485863); // true
    

    Tests

    npm test
    

    Contributing

    In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

    Release History

    • 1.0.0 Initial release
    • 1.0.1 Faster

    Keywords

    none

    Install

    npm i is-number-prime

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    ISC

    Last publish

    Collaborators

    • avatar