Sequence of primes by trial division: Difference between revisions

Content added Content deleted
Line 1,851: Line 1,851:
(yield 3)
(yield 3)
(make
(make
(chain (3 1 2)) # start with W2 = 1, 3, 5, 7, 9, ...
(chain (3 1 2)) # start with W1 = 1, 3, 5, 7, 9, ...
(loop
(loop
# At the start of the loop, switch to the next size wheel.
# At the start of the loop, switch to the next size wheel.