1 2 3 4 5 6 7 8 9 10
function foo() total = 0 for i= 1, 100000000 do total = total + i end print('total = ' .. total) end foo()