Login
7 branches 0 tags
Ben (Win10) Fixed funcalls for anonymous fn's that are defined in the top-level 90f1116 3 years ago 754 Commits
nujel / benchmark / euler1 / lua.lua
#!/usr/bin/env lua
ret = 0
for i = 1,(10000000-1)
do
        if (((i % 3) == 0) or ((i % 5) == 0)) then
               ret = ret + i
        end
end
print("The sum is ",ret)