The pseudosquares prime sieve

13Citations
Citations of this article
3Readers
Mendeley users who have this article in their library.
Get full text

Abstract

We present the pseudosquares prime sieve, which finds all primes up to n. Define p to be the smallest prime such that the pseudosquare Lp > n/(π(p)(log n)2); here π(X) is the prime counting function. Our algorithm requires only O(π(p)n) arithmetic operations and O(π(p)log n) space. It uses the pseudosquares primality test of Lukes, Patterson, and Williams. Under the assumption of the Extended Riemann Hypothesis, we have p ≤ 2(log n)2, but it is conjectured that p ∼ 1/log 2 log n log log n. Thus, the conjectured complexity of our prime sieve is O(n log n) arithmetic operations in O((log n)2) space. The primes generated by our algorithm are proven prime unconditionally. The best current unconditional bound known is p ≤ n1/(4√e-epsi;), implying a running time of roughly n1.132 using roughly n0.132 space. Existing prime sieves are generally faster but take much more space, greatly limiting their range (O(n/ log log n) operations with n1/3+ε space, or O(n) operations with n1/4 conjectured space). Our algorithm found all 13284 primes in the interval [1033, 1033 + 10 6] in about 4 minutes on a 1.3GHz Pentium IV. We also present an algorithm to find all pseudosquares Lp up to n in sublinear time using very little space. Our innovation here is a new, space-efficient implementation of the wheel datastructure. © Springer-Verlag Berlin Heidelberg 2006.

Cite

CITATION STYLE

APA

Sorenson, J. P. (2006). The pseudosquares prime sieve. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 4076 LNCS, pp. 193–207). Springer Verlag. https://doi.org/10.1007/11792086_15

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free