haskell: add [p4, p10]
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
5
haskell/p4.hs
Normal file
5
haskell/p4.hs
Normal file
@@ -0,0 +1,5 @@
|
||||
main :: IO ()
|
||||
main = putStr $ show solve
|
||||
|
||||
solve :: Integer
|
||||
solve = maximum [a * b | a <- [100 .. 999], b <- [a .. 999], let s = show $ a * b, s == reverse s]
|
Reference in New Issue
Block a user