Skip to main content

Improved incremental prime number sieves

  • Conference paper
  • First Online:
Algorithmic Number Theory (ANTS 1994)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 877))

Included in the following conference series:

Abstract

An algorithm due to Bengalloun that continuously enumerates the primes is adapted to give the first prime number sieve that is simultaneously sublinear, additive, and smoothly incremental:

  • it employs only Θ(n/log log n) additions of numbers of size O(n) to enumerate the primes up to n, equalling the performance of the fastest known algorithms for fixed n;

  • the transition from n to n + 1 takes only O(1) additions of numbers of size O(n). (On average, of course, O(1) such additions increase the limit up to which all primes are known from n to n + Θ(log log n)).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Adleman, L.M. and McCurley, K.S.: Open problems in number theoretic complexity, II. Proceedings of the First Algorithmic Number Theory Symposium. This volume.

    Google Scholar 

  2. Aho, A., Hopcroft, J., Ullman, J.: The Design and Analysis of Computer Algorithms. Addison-Wesley, Reading, Massachusetts, 1974.

    Google Scholar 

  3. Bengalloun, S.: An incremental primal sieve. Acta Informatica 23 (1986) 119–125

    Google Scholar 

  4. Gries, D.: The Science of Programming. Springer-Verlag, New York, 1981.

    Google Scholar 

  5. Hardy, G.H. and Wright, E.M.: An Introduction to the Theory of Numbers, 5th ed. London Univ. Press, London, 1979.

    Google Scholar 

  6. Heath-Brown, D.R., Iwaniec, H.: On the difference between consecutive primes. Inventiones Mathematicae 55 (1979) 49–69

    Google Scholar 

  7. Iwaniec, H.: On the problem of Jacobsthal. Demonstratio Math. 11 (1978) 225–231

    Google Scholar 

  8. Pritchard, P.: On the prime example of programming. In Tobias, J. (ed.): Language Design and Programming Methodology. Lecture Notes in Computer Science 79, (1980) 85–94

    Google Scholar 

  9. Pritchard, P.: A sublinear additive sieve for finding prime numbers. Comm. ACM 24 (1981) 18–23

    Google Scholar 

  10. Pritchard, P.: Explaining the wheel sieve. Acta Informatica 17 (1982) 477–485

    Google Scholar 

  11. Pritchard, P.: Fast compact prime number sieves (among others). J. Algorithms 4 (1983) 332–344.

    Google Scholar 

  12. Pritchard, P.: Linear prime number sieves: a family tree. Sci. Comp. Prog. 9 (1987) 17–35

    Google Scholar 

  13. Pritchard, P.: Opportunistic algorithms for eliminating supersets. Acta Informatica 28 (1991) 733–754

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Leonard M. Adleman Ming-Deh Huang

Rights and permissions

Reprints and permissions

Copyright information

© 1994 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Pritchard, P. (1994). Improved incremental prime number sieves. In: Adleman, L.M., Huang, MD. (eds) Algorithmic Number Theory. ANTS 1994. Lecture Notes in Computer Science, vol 877. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-58691-1_67

Download citation

  • DOI: https://doi.org/10.1007/3-540-58691-1_67

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-58691-3

  • Online ISBN: 978-3-540-49044-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics