mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 12:46:53 +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')
|