summaryrefslogtreecommitdiff
path: root/haskell/p16.hs
blob: 89de59f76e4f8666f545790f03e398d607a33f3b (plain) (blame)
1
2
3
4
5
6
import Data.Char (digitToInt)

p16 :: Int
p16 = sum (map digitToInt (show (2^1000)))

main = putStrLn $ "Solution: " ++ show p16