mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 18:49:26 +08:00
Added Sieve of Eratosthenes for finding primes
This commit is contained in:
@ -16,6 +16,3 @@ def SOE(n):
|
||||
for i in range(n+1):
|
||||
if(sieve[i] == True):
|
||||
print(i, end=" ")
|
||||
|
||||
n = int(input("Enter a positive number\n"))
|
||||
SOE(n)
|
Reference in New Issue
Block a user