mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 15:06:19 +00:00
autopushed
This commit is contained in:
+1
-2
@@ -8,7 +8,7 @@ import math
|
||||
import sys
|
||||
|
||||
# I'm not proud (I am a little bit?).
|
||||
SIEVE = []
|
||||
global SIEVE
|
||||
PROOF = [] # :)
|
||||
|
||||
def factor(n):
|
||||
@@ -75,7 +75,6 @@ def prime(n):
|
||||
else:
|
||||
click.echo(f"{n} is not prime. Want proof? :)")
|
||||
click.echo("\n".join([line for line in PROOF if f'[[{n}]]' in line]))
|
||||
echo_sieve(SIEVE)
|
||||
|
||||
if __name__ == '__main__':
|
||||
prime()
|
||||
|
||||
Reference in New Issue
Block a user