local next = next a = {[1]=1} b = {} c = 0 for i=1,1000000 do if next(a) then c = c + 1 else c = c + 2 end end for i=1,1000000 do if next(b) then c = c + 1 else c = c + 2 end end print(c)