*
***
* *
*** *** C R A Z Y
* *
*** *** W I Z A R D
* * * *
*** *** *** *** S O F T W A R E
* *
*** ***
* * * * Computing for fun
*** *** *** ***
* * * * est. 2021 A.D.
*** *** *** ***
* * * * * * * *
*** *** *** *** *** *** *** ***
Last update: 1 July, 2025
Current projects available from Crazy Wizard Software
The program below is a little in memoriam to my father, Dik T. Winter (1945—2009), who once wrote the following program in 160 bytes of C to compute the first 800 digits of pi:
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);}
For more information on the algorithm that he used, including an analysis of the program, see e.g. this page hosted at Stanford University.
Happy computing!