summaryrefslogblamecommitdiffstats
path: root/001.lua
blob: fe66121a49eb727b9b03771b66ade65574320654 (plain) (tree)
1
2
3
4
5
6





                                                  
#!/usr/bin/lua
local t = 0
for i = 1, 999 do
    if i % 3 == 0 or i % 5 == 0 then t = t + i end
end
print(t)