mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 04:37:47 +08:00
11 lines
173 B
Plaintext
11 lines
173 B
Plaintext
![]() |
from lang import clock
|
||
|
|
||
|
start = clock()
|
||
|
N = 50000000; factors = []
|
||
|
for i in 1..N+1
|
||
|
if N % i == 0
|
||
|
list_append(factors, i)
|
||
|
end
|
||
|
end
|
||
|
print("elapsed:", clock() - start, 's')
|