The bug only seems to manifest itself when I add the sqrt() code. .... To see it go away, comment out the $sqrt definition and change the return statement to return $f.
Sorry Limbic~Region, I do not follow these instructions?
The only definition of $sqrt I can see is my $sqrt = sqrt( $N );
But I do not understand what you mean by "change the return statement to return $f."?
In reply to Re^7: OT: Finding Factor Closest To Square Root
by BrowserUk
in thread OT: Finding Factor Closest To Square Root
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |