Sieve of Eratosthenes: Difference between revisions
Content added Content deleted
GordonBGood (talk | contribs) (→Infinite list using laziness: note use of modulo means trial division...) |
GordonBGood (talk | contribs) (→Infinite list using threads and channels: note that is trial division not Eratosthenes...) |
||
Line 4,021: | Line 4,021: | ||
=== Infinite list using threads and channels === |
=== Infinite list using threads and channels === |
||
{{incorrect|Niue|It uses remainder (modulo) testing and so is a trial division algorithm, not a sieve of Eratosthenes.}} |
|||
<lang Racket> |
<lang Racket> |
||
#lang racket |
#lang racket |