mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 15:06:19 +00:00
autopushed
This commit is contained in:
+4
-2
@@ -15,10 +15,12 @@ def factor(n):
|
||||
click.echo(f"Is {i} a factor of {n}, I wonder?")
|
||||
|
||||
def print_sieve(sieve):
|
||||
primes = []
|
||||
for n, prime in enumerate(sieve):
|
||||
if n >= 2 and prime:
|
||||
|
||||
click.echo(f"{n}")
|
||||
primes.append(n)
|
||||
return ", ".join(output)
|
||||
|
||||
|
||||
def is_prime(n):
|
||||
sieve = [True for n in range(0, n+1)]
|
||||
|
||||
Reference in New Issue
Block a user