
Eratosthenes sieve of a given length up to 10 quatrillion. Over 100 million we use segmented sieve.
Used to generate prime lists up to 1 trillion (up to 1t there are 450GB of primes, so I will omit that link). Below the prime files generated:
primes-to-1m.csv, primes-to-10m.csv, primes-to-100m.csv, primes-to-1b.csv, primes-to-10b.csv, primes-to-100b.csv,
Total of primes smaller or equal than 2 is 1, it took 1 μs. Used eratosthenes sieve.
Last one prime of the sieve:
[ 2 ]