Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^4: OT: Finding Factor Closest To Square Rootby sleepingsquirrel (Chaplain) |
on Feb 19, 2005 at 17:15 UTC ( [id://432758]=note: print w/replies, xml ) | Need Help?? |
For the case of 1994, I'd say 2 is closer to 44.65... than 997. For 1993, I'd probably go with 1 over 1e99 or 1993. For
99999999, I think 9999 (101*11*3*3) is closest. (I'm just basing this on the comments after the __END__ tag in your code, 'cause I'm to lazy to install Math::Big::Factor)
-- All code is 100% tested and functional unless otherwise noted.
In Section
Seekers of Perl Wisdom
|
|