User loginNavigation 
The Genuine Sieve of Eratosthenes
Melissa E. Oâ€™Neill, The Genuine Sieve of Eratosthenes.
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.
Starting with the classic oneliner She notes that "Some readers may feel that despite all of these concerns, the earlier algorithm is somehow â€œmorallyâ€ the Sieve of Eratosthenes. I would argue, however, that they are confusing a mathematical abstraction drawn from the Sieve of Eratosthenes with the actual algorithm. The algorithmic details, such as how you remove all the multiples of 17, matter." A fun read. 
Browse archivesActive forum topics
New forum topics

Recent comments
6 hours 13 min ago
6 hours 13 min ago
10 hours 23 min ago
10 hours 29 min ago
14 hours 33 min ago
1 day 1 hour ago
2 days 12 hours ago
2 days 13 hours ago
3 days 10 hours ago
3 days 13 hours ago