sieve


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.csvprimes-to-10m.csvprimes-to-100m.csvprimes-to-1b.csvprimes-to-10b.csvprimes-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 ]