Jump to content

Sieve of Eratosthenes: Difference between revisions

→‎Infinite list using threads and channels: note that is trial division not Eratosthenes...
(→‎Infinite list using laziness: note use of modulo means trial division...)
(→‎Infinite list using threads and channels: note that is trial division not Eratosthenes...)
Line 4,021:
 
=== 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
474

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.