mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 18:23:06 +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
|
# Driver code
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
num = int(input("Enter a number: "))
|
num = int(input("Enter a number: "))
|
||||||
print("Following are the prime numbers smaller")
|
print(f"Following are the prime numbers smaller than or equal to {num}")
|
||||||
print("than or equal to", num)
|
|
||||||
print_sieve(num)
|
print_sieve(num)
|
||||||
Loading…
Reference in New Issue
Block a user