UNPKG

@santi100/eratosthenes-sieve

Version:

Santi's Energetic Sieve of Eratosthenes: How can you sift numbers?

8 lines (7 loc) 205 B
/** * Finds all prime numbers from 2 up to a given number `n`. * * @param n The upper limit of the range of numbers to check for primes. */ declare function sieve(n: number): number[]; export = sieve;