diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-05-13 23:32:40 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-05-13 23:32:40 -0500 |
commit | 7e7b56db42ceb8d2b8973eae678fa4b58d5d3659 (patch) | |
tree | 7a5cb816809d632e30227c1e39485ed63b500e80 /3.lua | |
download | projecteuler-7e7b56db42ceb8d2b8973eae678fa4b58d5d3659.tar.gz projecteuler-7e7b56db42ceb8d2b8973eae678fa4b58d5d3659.zip |
add old solutions
Diffstat (limited to '3.lua')
-rw-r--r-- | 3.lua | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -0,0 +1,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) |