remove(python-nixpkgs): remove input check for consistency

This commit is contained in:
Kiana Sheibani 2024-07-28 06:25:15 -04:00
parent a8a26921b4
commit ce6920a1d4
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -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)