LCM of 1 to n by llhuii(nn)

n=$0{for($n=i=1;j=i++<n;){for($1=OFS=E;i%++j;);for(;j>=i~j<k=n+1;j*=i)for(;E$--k||c;c/=10)c-=$k=(c+=i*$k)%10}}1

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

download

return to the top page