An implementation of the sieve of Eratosthenes to check prime numbers.
npm install --save prime-sieve
const isPrime = require('prime-sieve');
isPrime(2);
//=> true
isPrime(20254654641);
//=> false
isPrime(99999999944441);
//=> true
Prosen Ghosh prosenghosh25@gmail.com (https://bd.linkedin.com/in/prosen-ghosh-baba9aa8)
- MIT