mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 15:43:16 +02:00
Optimize print operation
This commit is contained in:
parent
a2700e6387
commit
3c7f4ba977
@ -42,6 +42,5 @@ def print_sieve(num: int) -> None:
|
||||
# Driver code
|
||||
if __name__ == '__main__':
|
||||
num = int(input("Enter a number: "))
|
||||
print("Following are the prime numbers smaller")
|
||||
print("than or equal to", num)
|
||||
print(f"Following are the prime numbers smaller than or equal to {num}")
|
||||
print_sieve(num)
|
||||
Loading…
Reference in New Issue
Block a user