Technically was a bug in 3

This commit is contained in:
2020-03-29 04:02:44 +02:00
parent 73044d95e1
commit 4ad00182b2

View File

@@ -19,7 +19,7 @@ def getNextPrime(ps):
return [2]
else:
p = ps[-1] + 1
while isDivisible(p, [q for q in ps if q < np.sqrt(p)]):
while isDivisible(p, [q for q in ps if q <= np.sqrt(p)]):
p = p + 1
ps.append(p)
return ps