summaryrefslogtreecommitdiffstats
path: root/003.lua
blob: eff06a3acb0fe218d1005984766a75635fa973ad (plain) (blame)
1
2
3
4
5
6
7
8
local num = 317584931803
local test = 3
while true do
    if num % test == 0 then num = num / test
    else test = test + 2 end
    if test > math.sqrt(num) then break end
end
print(num)