Sieve of Pritchard: Difference between revisions

Content added Content deleted
(Undo revision 329717 by Wherrera (talk))
Tag: Undo
(Undo revision 329716 by Wherrera (talk))
Tag: Undo
Line 185: Line 185:


=={{header|Julia}}==
=={{header|Julia}}==
With the add/remove statistics, the "Removed" figure is a combination of composites and primes under sqrt of limit. Getting about
Added add/remove statistics. "Removed" figure is a combination of composites and primes under sqrt of limit. Getting about
a 40% speedup from using a BitArray instead of a Set.
a 40% speedup from using a BitArray instead of a Set.
<syntaxhighlight lang="julia">""" Rosetta Code task rosettacode.org/wiki/Sieve_of_Pritchard """
<syntaxhighlight lang="julia">""" Rosetta Code task rosettacode.org/wiki/Sieve_of_Pritchard """