Jump to content

Largest palindrome product: Difference between revisions

m
→‎{{header|Ring}}: keeping it odd
m (→‎{{header|Ring}}: removed library dependence, improved performance by checking hi to low and terminating the inner loop once it's obvious the result won't be improved)
m (→‎{{header|Ring}}: keeping it odd)
Line 156:
// the best-found-so-far second number. Doing this
// lowers the iteration count by a lot.
for m = max to second step -12
prod = n * m
if isPal(prod)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.