From ce6920a1d43b555f0b1719ee19f5feb2d2ff1a38 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Sun, 28 Jul 2024 06:25:15 -0400 Subject: [PATCH] remove(python-nixpkgs): remove input check for consistency --- python/nixpkgs/soe/main.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/python/nixpkgs/soe/main.py b/python/nixpkgs/soe/main.py index 1c6c4a8..ba258ad 100644 --- a/python/nixpkgs/soe/main.py +++ b/python/nixpkgs/soe/main.py @@ -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 - + num = int(input("Primes up to: ")) print() for i in sieve_of_eratosthenes(num): print(i)