From db1d685414ac9257082803be8af9b27a088d8938 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 15 May 2009 10:05:49 -0500 Subject: mark these old ones as non-working --- 145.lua | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 145.lua (limited to '145.lua') diff --git a/145.lua b/145.lua deleted file mode 100644 index 1713881..0000000 --- a/145.lua +++ /dev/null @@ -1,12 +0,0 @@ --- this will take ~6h to run... need efficiency! -function reversible(n) - local revn = n:reverse() - local str = tostring(n + revn) - return not str:match("[02468]") -end - -local sum = 0 -for i = 1, 999999999 do - if i % 10 ~= 0 and reversible(tostring(i)) then sum = sum + 1 end -end -print(sum) -- cgit v1.2.3-54-g00ecf