Factorial1000 by twobit

c=1
for n=1,1e3 do
for i=1,2568 do
c=c+n*(io[i]or 0)io[i]=c%10
c=c/10-c/10%1
end
end
print(table.concat(io):reverse())

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page