Abstract
We introduce an algorithm that computes the prime numbers up to N using O(N=log logN) additions and N1=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.
Original language | English |
---|---|
Pages (from-to) | 1023-1030 |
Journal | Mathematics of Computation |
Volume | 73 |
DOIs | |
Publication status | Published - 2004 |