haskell 004

master
Evan Hemsley 2020-10-26 23:40:23 -07:00
parent 7ed2845210
commit 177e937ccd
1 changed files with 6 additions and 0 deletions

6
haskell/euler004.hs Normal file
View File

@ -0,0 +1,6 @@
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)])