Skip to content
/ my-prime Public template

Finds prime numbers using the Sieve of Eratosthenes algorithm.

Notifications You must be signed in to change notification settings

jinnatul/my-prime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm install size stars npm total downloads

My-Prime

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;

Releases

No releases published

Packages

No packages published