However, the algorithm itself is rather obfuscated already and reducing the number of characters for the perl golf resulted in another level of obfuscation. So I thought the obfuscation section would be the right place for it to post anyway.
$|=print 3.2;sub O{8*($@-$_)+(1,4,5,6)[$:]};sub o{(-4,2,1,1)[$:]/O};while($,=++$@){for$:(0..3){ for (0..$@) {for$" (($/=1) ..$_){ ($/*=16) %=O}; $,-=$/ *o}$, -=16** $_*o for-6..- 1}printf "%x",$,* 16%16}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hexadecimal representation of pi
by ambrus (Abbot) on Mar 07, 2006 at 13:53 UTC | |
by weixi (Novice) on Mar 07, 2006 at 15:04 UTC | |
|
Re: Hexadecimal representation of pi
by locked_user mtve (Deacon) on Mar 09, 2006 at 10:06 UTC |