mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 15:06:19 +00:00
autopushed
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ def is_prime(n):
|
|||||||
# for j in range(2, math.ceil(math.sqrt(n) + 1)):
|
# for j in range(2, math.ceil(math.sqrt(n) + 1)):
|
||||||
for j in range(2, n):
|
for j in range(2, 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:
|
||||||
|
|||||||
Reference in New Issue
Block a user