Subfactorial FIXED by nn

for(i=a=b='1';print(b),i--+49;a=b,b=c?c+o:o)for(j=a[-1],k=b[-1],c=o='';k--;c=c/10|0)c-=(j&&a[--j]*i)+b[k]*i,o=c%10+o

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

download

return to the top page