Generates primes up to a given number, using the Sieve of Eratosthenes
primes(10); // [2, 3, 5, 7]
Generated using TypeDoc
Generates primes up to a given number, using the Sieve of Eratosthenes
Example