Problen4-Project Euler
11月 3rd, 2009
未分类
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.
Find the largest palindrome made from the product of two 3-digit numbers.
(999*999).downto(100*100) do |i| break puts i if i.to_s == i.to_s.reverse end