mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 04:37:47 +08:00
14 lines
207 B
Lua
14 lines
207 B
Lua
local start = os.clock()
|
|
|
|
local factors = {}
|
|
local N = 50000000
|
|
|
|
for i=1,N do
|
|
if N % i == 0 then
|
|
table.insert(factors, i)
|
|
end
|
|
end
|
|
|
|
local seconds = os.clock() - start
|
|
print('elapsed: ' .. seconds .. 's')
|