UNPKG
@santi100/eratosthenes-sieve
Version:
latest (0.0.1)
0.0.1
Santi's Energetic Sieve of Eratosthenes: How can you sift numbers?
santi100a/eratosthenes-sieve
@santi100/eratosthenes-sieve
/
cjs
/
index.d.ts
8 lines
(7 loc)
•
205 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
/** * 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;