Skip to main content Accesibility Help
×
×
Home

The Genuine Sieve of Eratosthenes

  • MELISSA E. O'NEILL (a1)
Abstract

A much beloved and widely used example showing the elegance and simplicity of lazy functional programming represents itself as “The Sieve of Eratosthenes.” This paper shows that this example is not the sieve and presents an implementation that actually is.

Copyright
References
Hide All
Bengelloun, S. A. (1986) An incremental primal sieve. Acta Inf. 23, 119125.
Crandall, R. & Pomerance, C. (2001) Prime Numbers. A Computational Perspective. New York: Springer-Verlag.
Hardy, G. H. & Wright, E. M. (1979) An Introduction to the Theory of Numbers. 5th ed.Oxford: Clarendon Press, pp. 354358.
Meertens, L. (2004) Calculating the Sieve of Eratosthenes. J. Funct. Prog. 14 (6), 759763.
Paulson, L. C. (1996) ML for the Working Programmer. 2nd ed.Cambridge University Press.
Pritchard, P. (1987) Linear prime-number sieves: A family tree. Sci. Comput. Prog. 9, 1735.
Pritchard, P. (1994) Improved incremental prime number sieves. In Proceedings of the First International Symposium on Algorithmic Number Theory. London: Springer-Verlag, pp. 280288.
Runciman, C. (1997) Lazy wheel sieves and spirals of primes. J. Funct. Prog. 7 (2), 219225.
Selberg, S. (1946) An upper bound for the number of cancelled numbers in the Sieve of Eratosthenes. Det kongelige Norske videnskabers selskabs forhandlinger, Trondhjem 19 (2), 36.
Turner, D. A. (1975) SASL Language Manual. Technical Report CS/75/1. Department of Computational Science, University of St. Andrews.
Recommend this journal

Email your librarian or administrator to recommend adding this journal to your organisation's collection.

Journal of Functional Programming
  • ISSN: 0956-7968
  • EISSN: 1469-7653
  • URL: /core/journals/journal-of-functional-programming
Please enter your name
Please enter a valid email address
Who would you like to send this to? *
×

Metrics

Altmetric attention score

Full text views

Total number of HTML views: 0
Total number of PDF views: 0 *
Loading metrics...

Abstract views

Total abstract views: 0 *
Loading metrics...

* Views captured on Cambridge Core between <date>. This data will be updated every 24 hours.

Usage data cannot currently be displayed

The Genuine Sieve of Eratosthenes

  • MELISSA E. O'NEILL (a1)
Submit a response

Discussions

No Discussions have been published for this article.

×

Reply to: Submit a response


Your details


Conflicting interests

Do you have any conflicting interests? *