Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

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

1

version

1.0.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability