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
|
yield prime
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
num = 0
|
num = int(input("Primes up to: "))
|
||||||
another = True
|
|
||||||
while another:
|
|
||||||
try:
|
|
||||||
num = int(input("Primes up to: "))
|
|
||||||
another = False
|
|
||||||
except ValueError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
print()
|
print()
|
||||||
for i in sieve_of_eratosthenes(num):
|
for i in sieve_of_eratosthenes(num):
|
||||||
print(i)
|
print(i)
|
||||||
|
|
Loading…
Reference in a new issue