mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08: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