my-prime
v1.0.1
Published
Finds prime numbers using the Sieve of Eratosthenes algorithm.
Downloads
12
Readme
isprime
Finds prime numbers using the Sieve of Eratosthenes algorithm.
$ npm i my-prime
Usage
// es5
var pr = require('my-prime');
// es6
import pr from 'my-prime';
pr.isPrime(3);
// => true;
pr.isPrime(4);
// => false;
pr.isPrime(11);
// => true;
pr.isPrime(3079);
// => true;