From 7e7b56db42ceb8d2b8973eae678fa4b58d5d3659 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 13 May 2009 23:32:40 -0500 Subject: add old solutions --- 3.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 3.lua (limited to '3.lua') diff --git a/3.lua b/3.lua new file mode 100644 index 0000000..eff06a3 --- /dev/null +++ b/3.lua @@ -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) -- cgit v1.2.3