in reply to Pi golf:
I suck at golf, but I can at least contribute a different algorithm for 66 characters:
($p,$o,$n)=(1,3,-1);for(1..10**6){$p+=$n/$o;$o+=2;$n=-$n}print$p*4
Obviously, also note that 10**6 (instead of 1000000) is an easy way for the other posters here to save another 2 characters.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pi golf:
by Tanktalus (Canon) on Sep 05, 2006 at 21:40 UTC |