sieve-of-eratosthene
v0.0.3
Published
get the primes numbers using sieve of eratosthene
Downloads
2
Readme
sieve-of-eratosthene
Sieve of Eratosthene to get prime numbers
Usage
siave(10)// -> [3,5,7]
siave(100)// -> [ 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97 ]
API
sieve([n]) -> Array
Return the first primes numbers in [2,n]