Created
July 26, 2012 04:46
-
-
Save rhysd/3180300 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isPalindromeNum :: Int -> Bool | |
isPalindromeNum n = s == reverse s | |
where s = show n | |
main = putStrLn . show . maximum $ [x*y| x<-[100..999],y<-[x..999], isPalindromeNum $ x*y] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment