remove(python-nixpkgs): remove input check for consistency
This commit is contained in:
parent
a8a26921b4
commit
ce6920a1d4
|
@ -8,15 +8,7 @@ def sieve_of_eratosthenes(n):
|
|||
yield prime
|
||||
|
||||
def main():
|
||||
num = 0
|
||||
another = True
|
||||
while another:
|
||||
try:
|
||||
num = int(input("Primes up to: "))
|
||||
another = False
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
print()
|
||||
for i in sieve_of_eratosthenes(num):
|
||||
print(i)
|
||||
|
|
Loading…
Reference in a new issue