Sequence of primes by trial division: Difference between revisions
→Postponed sieve by trial division: simplify
(→Postponed sieve by trial division: tweak the one-liner comment) |
(→Postponed sieve by trial division: simplify) |
||
Line 408:
-- primes = (2:) . concatMap (fst.snd)
-- . iterate (\(p:t,(h,xs)) -> (t,span (< head t^2) [y | y <- xs, rem y p /= 0]))
--
===Segmented Generate and Test===
|