Factorial1000 by nn

for(a=c=i=1;i--+1e3;a=s)for(s='',j=2568;j--;c=c/10|0)c-=i*~~a[j],s=c%10+s
print(a)

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

download

return to the top page