Sieve of Pritchard: Difference between revisions
Undo revision 329717 by Wherrera (talk)
m (→{{header|Julia}}: change for loop) |
Tag: Undo |
||
Line 186:
=={{header|Julia}}==
With the add/remove statistics, the "Removed" figure is a combination of composites and primes under sqrt of limit. Getting about
a
<syntaxhighlight lang="julia">""" Rosetta Code task rosettacode.org/wiki/Sieve_of_Pritchard """
Line 203:
# the last partial wheel (if present)
if steplength < limit
for w in
ac
end
end
Line 216 ⟶ 214:
end
np = 5
for w in
rc +=
members[n]
end
np < prime && break
|