User:Yeti: Difference between revisions
Content added Content deleted
No edit summary |
(→Primes) |
||
Line 3: | Line 3: | ||
---- |
---- |
||
=Arithmetic/Complex= |
|||
==Dc== |
|||
WIP! |
|||
=Primes= |
=Primes= |
||
==Python== |
==Python== |
||
{{works with|Python|2.x}} |
{{works with|Python|2.x}} |
||
This is a sequentialised variant of the well known sieve method (ab)using a dictionary as sparse array. |
|||
<lang python>L = {} |
<lang python>L = {} |
||
n = 2 |
n = 2 |