Project Euler 1 in Lua