in reply to Re^2: Largest palindrome number for a 3 digit product of 2 numbers
in thread Largest palindrome number for a 3 digit product of 2 numbers
Other trick used to trim the search space is taking into account that for natural numbers if a >= b then a*c >= b*c, so as soon as we found a $j that makes a palindrome we can stop the J loop.
Finally whatever becomes $prod <= $best we can also stop J; or even I if $j is still at 999.
|
|---|