
TL;DR
This paper introduces two new prime sieves: a practical incremental sieve with efficient time and space complexity, and a modified Atkin-Bernstein sieve that is sublinear, compact, and incremental, solving a long-standing open problem.
Contribution
It presents the rolling sieve, a practical incremental prime sieve, and modifies the Atkin-Bernstein sieve to be sublinear, compact, and incremental, addressing previous open challenges.
Findings
Rolling sieve operates in O(n log log n) time with O(√n) space.
Modified Atkin-Bernstein sieve is sublinear, compact, and incremental.
Both sieves improve efficiency and practicality for prime computation.
Abstract
A prime sieve is an algorithm that finds the primes up to a bound . We say that a prime sieve is incremental, if it can quickly determine if is prime after having found all primes up to . We say a sieve is compact if it uses roughly space or less. In this paper we present two new results: (1) We describe the rolling sieve, a practical, incremental prime sieve that takes time and bits of space, and (2) We show how to modify the sieve of Atkin and Bernstein (2004) to obtain a sieve that is simultaneously sublinear, compact, and incremental. The second result solves an open problem given by Paul Pritchard in 1994.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
