paper

Faster enumeration of primes

arXiv:2606.22851

Abstract

We describe several new algorithms for finding all prime numbers up to a given bound , achieving the first ever speedup by a positive power of over the ancient sieve of Eratosthenes. The fastest version, which is not fully rigorous, runs in \[ N (\log \log N)^{1+o(1)} \] bit operations when analysed in the multitape Turing model. This improves on the best existing algorithms due to Pritchard (1981), Atkin--Bernstein (2004) and Sergeev (2016) by a factor of almost . We also present a rigorous randomised (Las Vegas) variant that is slower by a factor of , and a rigorous deterministic variant that is slower by a factor of . The new algorithms make heavy use of fast polynomial arithmetic over finite fields, and also involve ideas from the theory of error-correcting codes.

121 pages