|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re^3: Determining if a rational number terminatesby blackle (Beadle) |
| on Nov 29, 2012 at 18:12 UTC ( #1006314=note: print w/ replies, xml ) | Need Help?? |
|
Thanks for that, I didn't even consider that it wouldn't be in lowest form. It's really clever to take advantage of the fact that powers of five always end with five, I suppose then it's better to divide out the powers of two first than the powers of five. Tomorrow I will ++ both of these :D
In Section
Obfuscated Code
|
|
||||||||||||||||||||||