FUNCTIONAL PEARL Calculating the Sieve of Eratosthenes

  • MEERTENS L
N/ACitations
Citations of this article
17Readers
Mendeley users who have this article in their library.

Abstract

The Sieve of Eratosthenes is an efficient algorithm for computing the successive primes. Rendered informally, it is as follows: 1. Write down the successive “plurals”: 2, 3, 4, …2. Repeat:(a) Take the first number that is not circled or crossed out.(b) Circle it.(c) Cross out its proper multiples.3. What is left (i.e. the circled numbers) are the successive prime numbers.

Cite

CITATION STYLE

APA

MEERTENS, L. (2004). FUNCTIONAL PEARL Calculating the Sieve of Eratosthenes. Journal of Functional Programming, 14(6), 759–763. https://doi.org/10.1017/s0956796804005210

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