We introduce an algorithm that computes the prime numbers up to N using O(N/log log N) additions and N 1/2+o(1) bits of memory. The algorithm enumerates representations of integers by certain binary quadratic forms. We present implementation results for this algorithm and one of the best previous algorithms.
CITATION STYLE
Atkin, A. O. L., & Bernstein, D. J. (2003). Prime sieves using binary quadratic forms. Mathematics of Computation, 73(246), 1023–1030. https://doi.org/10.1090/s0025-5718-03-01501-1
Mendeley helps you to discover research relevant for your work.