in reply to Re: Code Golf: Four is magic
in thread Code Golf: Four is magic
perl -E'@x=split//,"0335443554366887798866555766";$_+=<>;print;while($ +_!=4){split//,"99aabb87780";$_?do{$x=0;$x+=hex(pop)*!!$&+($1&&$x[$1]+ +7)+($2>1?$x[$2+18]+$x[$3]:$x[$2.$3])while s/(.??)(.?)(.)$//}:($x=4);s +ay" is $x.";print$_=$x}say" is magic."'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Code Golf: Four is magic
by thundergnat (Deacon) on Jul 14, 2010 at 00:28 UTC | |
by duelafn (Parson) on Jul 14, 2010 at 01:50 UTC | |
by Haarg (Priest) on Jul 14, 2010 at 03:04 UTC | |
by duelafn (Parson) on Jul 14, 2010 at 14:09 UTC |