mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
15 lines
220 B
Python
15 lines
220 B
Python
def test(n):
|
|
k = 0
|
|
for x in range(n):
|
|
if x<2:
|
|
continue
|
|
flag = True
|
|
for i in range(2,x):
|
|
if x%i == 0:
|
|
flag = False
|
|
break
|
|
if flag:
|
|
k += 1
|
|
return k
|
|
|
|
print(test(10000)) |