From 50d85f20075ec7aa2adefae9b6e26f0489cb68ab Mon Sep 17 00:00:00 2001 From: Normale <52136684+Normale@users.noreply.github.com> Date: Fri, 25 Nov 2022 23:58:31 +0100 Subject: [PATCH] Add simple user interface --- code/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/project.py b/code/project.py index 85447344..8c37a1f3 100644 --- a/code/project.py +++ b/code/project.py @@ -41,7 +41,7 @@ def print_sieve(num: int) -> None: # Driver code if __name__ == '__main__': - num = 3000 + num = int(input("Enter a number: ")) print("Following are the prime numbers smaller"), print("than or equal to", num) print_sieve(num) \ No newline at end of file