Livejournal
Log in
Post
Friends
My journal
myrathi
Mm. PI.
May 09, 2005 16:42
int a=10000,b,c=2800,d,e,f[2801],g;main(){for(;b-c;)f[b++]=a/5;
for(;d=0,g=c*2;c-=14,printf("%.4d",e+d/a),e=d%a)for(b=c;d+=f[b]*a,
f[b]=d%--g,d/=g--,--b;d*=b);}
pi to 800 digits. In 160 characters of code. Woo! 0_o
Leave a comment
Read comments 8
Previous post
Next post
Up