mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 20:50:55 +08:00
13 lines
175 B
Plaintext
13 lines
175 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')
|