mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 23:16:21 +00:00
autopushed
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ def is_prime(n):
|
|||||||
# I wrote >= here initially. That did *not* work ;)
|
# I wrote >= here initially. That did *not* work ;)
|
||||||
if i * j > n:
|
if i * j > n:
|
||||||
break
|
break
|
||||||
PROOF.append(f"[[{i*j}]] is composite: {i} * {j}.")
|
PROOF.append(f"{i*j} is composite: [[{i}]] * [[{j}]].")
|
||||||
try:
|
try:
|
||||||
sieve[i*j] = False
|
sieve[i*j] = False
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
|||||||
Reference in New Issue
Block a user