euler/haskell/euler004.hs

7 lines
151 B
Haskell
Raw Normal View History

2020-10-27 06:40:23 +00:00
module Main where
palindrome n = show n == reverse (show n)
main = do
print (maximum [x*y | x <- [100..999], y <- [100..999], palindrome (x*y)])