mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-22 01:02:04 +00:00
Added Sieve of Eratosthenes for finding primes
This commit is contained in:
parent
664b35252e
commit
4a6894c1fa
|
@ -16,6 +16,3 @@ def SOE(n):
|
||||||
for i in range(n+1):
|
for i in range(n+1):
|
||||||
if(sieve[i] == True):
|
if(sieve[i] == True):
|
||||||
print(i, end=" ")
|
print(i, end=" ")
|
||||||
|
|
||||||
n = int(input("Enter a positive number\n"))
|
|
||||||
SOE(n)
|
|
Loading…
Reference in New Issue
Block a user