Content deleted Content added
m Reverted edit by Funkywizard (talk) to last version by AdaHephais |
for algorithmic correctness p should be initialized to [2]. the loop invariant being - |
||
Line 491:
yield 2
n = 3
p = [2]
while True:
# If dividing n by all the numbers in p, up to and including sqrt(n),
|