Abstract
We describe a “dissected” sieving algorithm which enumerates primes in the interval [x 1, x 2], using \(O(x_{2}^{1/3})\) bits of memory and using \(O(x_{2} -- x_{1} + x^{1/3}_{2}\) arithmetic operations on numbers of \(O(\rm ln \it x_{2})\) bits. This algorithm is based on a recent algorithm of Atkin and Bernstein [1], modified using ideas developed by Voronoï for analyzing the Dirichlet divisor problem [20]. We give timing results which show our algorithm has roughly the expected running time.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Atkin, A.O.L., Bernstein, D.J.: Prime sieves using binary quadratic forms, Dept. of Mathematics, Statistics, and Computer Science, University of Illinois, Chicago, 60607-7045 (1999); Preprint available at, http://pobox.com/~djb/papers/primesieves.dvi
Deléglise, M., Rivat, J.: Computing π(x): the Meissel, Lehmer, Lagarias, Miller, Odlyzko method. Mathematics of Computation 65(213), 235–245 (1996)
Dowd, K., Severance, C.R.: High performance computing, 2nd edn. O’Reilly and Associates, Inc., 101 Morris Street, Sebastopol, CA 95472 (1998)
Galway, W.F.: Robert Bennion’s hopping sieve. In: Buhler, J.P. (ed.) ANTS 1998. LNCS, vol. 1423, pp. 169–178. Springer, Heidelberg (1998)
Galway, W.F.: Analytic computation of the prime-counting function, Ph.D. thesis, University of Illinois at Urbana-Champaign, expected (2000)
Hardy, G.H., Wright, E.M.: An introduction to the theory of numbers, 5th edn. Oxford University Press, Oxford (1979)
Huxley, M.N.: Area, lattice points, and exponential sums, London Mathematical Society Monographs. New Series, vol. 13. The Clarendon Press, Oxford University Press, Oxford Science Publications (1996)
Ivić, A.: The Riemann zeta-function. John Wiley & Sons, New York (1985)
Knuth, D.E.: The art of computer programming, 2nd edn. Fundamental Algorithms, vol. 1. Addison-Wesley, Reading (1973)
Lagarias, J.C., Miller, V.S., Odlyzko, A.M.: Computing π(x): The Meissel- Lehmer method. Mathematics of Computation 44(170), 537–560 (1985)
Lagarias, J.C., Odlyzko, A.M.: Computing π(x): an analytic method. Journal of Algorithms 8(2), 173–191 (1987)
Lehmer, D.H., Lehmer, E.: A new factorization technique using quadratic forms. Mathematics of Computation 28, 625–635 (1974)
Nicely, T.R.: Enumeration to 10 14 of the twin primes and Brun’s constant. Virginia J. Sci. 46(3), 195–204 (1995)
Nicely, T.R.: New maximal prime gaps and first occurrences. Mathematics of Computation 68(227), 1311–1315 (1999)
Riesel, H.: Prime numbers and computer methods for factorization, 2nd edn. Progress in Mathematics, vol. 126. Birkhäuser, Basel (1994)
Sierpiński, W.: Sur un probléme du calcul des fonctions asymptotiques,1906, Oeuvres choisies, Tome I, PWN—Éditions Scientifiques de Pologne, Warsaw, pp. 73–108 (1974)
Sorenson, J.P.: Trading time for space in prime number sieves. In: Buhler, J.P. (ed.) ANTS 1998. LNCS, vol. 1423, pp. 179–195. Springer, Heidelberg (1998)
Tenenbaum, G.: Introduction to analytic and probabilistic number theory. Cambridge University Press, Cambridge (1995)
van der Corput, J.G.: Über Gitterpunkte in der Ebene. Mathematische Annalen 81, 1–20 (1920)
Voronoï, G.: Sur un probléme du calcul des fonctions asymptotiques. J. Reine Angew. Math. 126, 241–282 (1903)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2000 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Galway, W.F. (2000). Dissecting a Sieve to Cut Its Need for Space. In: Bosma, W. (eds) Algorithmic Number Theory. ANTS 2000. Lecture Notes in Computer Science, vol 1838. Springer, Berlin, Heidelberg. https://doi.org/10.1007/10722028_17
Download citation
DOI: https://doi.org/10.1007/10722028_17
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-67695-9
Online ISBN: 978-3-540-44994-2
eBook Packages: Springer Book Archive