We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f997e6b commit 3de9bfbCopy full SHA for 3de9bfb
euler004.hs
@@ -1,3 +1,3 @@
1
main = print $ maximum palindromes
2
- where palindromes = [x*y | x <- [999,998..1], y <- [999,998..1],
+ where palindromes = [x*y | x <- [100..999], y <- [x..999],
3
(reverse $ show (x*y)) == (show (x*y))]
0 commit comments