Sequence of primes by trial division: Difference between revisions

(→‎Postponed sieve by trial division: tweak the one-liner comment)
Line 408:
-- primes = (2:) . concatMap (fst.snd)
-- . iterate (\(p:t,(h,xs)) -> (t,span (< head t^2) [y | y <- xs, rem y p /= 0]))
-- .$ (primes, ([3],[4..])) $ primes</lang>
 
===Segmented Generate and Test===
751

edits