autopushed

This commit is contained in:
2023-10-14 21:53:51 +02:00
parent 0fa80d61b9
commit 35ec6381d0
+2 -1
View File
@@ -8,6 +8,7 @@ import math
import sys import sys
# I'm not proud (I am a little bit?). # I'm not proud (I am a little bit?).
SIEVE = []
PROOF = [] # :) PROOF = [] # :)
LOG = [] # :) LOG = [] # :)
@@ -16,7 +17,7 @@ def factor(n):
click.echo(f"Is {i} a factor of {n}, I wonder?") click.echo(f"Is {i} a factor of {n}, I wonder?")
def is_prime(n): def is_prime(n):
is_prime = [True for n in range(0, n+1)] SIEVE = [True for n in range(0, n+1)]
upto = math.ceil(math.sqrt(n)) upto = math.ceil(math.sqrt(n))
for i, _ in enumerate(is_prime): for i, _ in enumerate(is_prime):
# click.echo(f"i: {i}") # click.echo(f"i: {i}")