Sieve of Pritchard: Difference between revisions
Content deleted Content added
m →{{header|Python}}: docstring |
m →{{header|Python}}: a set() can .add, but not .append() - problem only shows up for smaller limtits such as 40 |
||
Line 118: | Line 118: | ||
n = w + steplength |
n = w + steplength |
||
while n <= limit: |
while n <= limit: |
||
members. |
members.add(n) |
||
n += steplength |
n += steplength |
||
steplength = limit |
steplength = limit |