Sieve of Pritchard: Difference between revisions

Content deleted Content added
Wherrera (talk | contribs)
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.append(n)
members.add(n)
n += steplength
n += steplength
steplength = limit
steplength = limit