euler/Problem016.hs

3 lines
111 B
Haskell

-- What is the sum of the digits of the number 2^1000?
main = print $ sum $ map (read . (:[])) $ show $ 2^1000