Keep It Simple, Stupid | |
PerlMonks |
Re^2: OT: Finding Factor Closest To Square Rootby QM (Parson) |
on Feb 20, 2005 at 07:27 UTC ( [id://432847]=note: print w/replies, xml ) | Need Help?? |
I am almost sure this does what you want. I am also convinced it is rather inefficient.Yes on both counts. But I like the hand-crafted code approach :) I rather hoped that someone would reveal a method using the prime factorization, or an efficient method for finding a factor reasonably close to the square root. -QM
In Section
Seekers of Perl Wisdom
|
|