10 lines
314 B
Python
10 lines
314 B
Python
|
def prime_eratosthenes(n):
|
||
|
prime_list = []
|
||
|
for i in range(2, n+1):
|
||
|
if i not in prime_list:
|
||
|
print (i)
|
||
|
for j in range(i*i, n+1, i):
|
||
|
prime_list.append(j)
|
||
|
|
||
|
print(prime_eratosthenes(100))';
|
||
|
include("../../new_editor/editor_python.php")
|