Jump to content

User:Yeti: Difference between revisions

Line 9:
</pre>
 
=Primes/Python/FSOE==
==Python==
{{works with|Python|2.x}}
This is a sequentialised variant of the well known sieve method (ab)using a dictionary as sparse array.
Line 20 ⟶ 19:
if n in L:
P = L[n]
del L[n] # optional - just saves some memory.
else:
print n
169

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.