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.
Find the largest palindrome made from the product of two 3-digit numbers.
Prelude> maximum [x*y| x <- [100..999], y <- [100..999], (show $ x*y) == (reverse $ show $ y*x)]
906609
댓글 없음:
댓글 쓰기