Skip to content

Instantly share code, notes, and snippets.

@geowa4
Created February 8, 2013 01:49
Show Gist options
  • Select an option

  • Save geowa4/4735976 to your computer and use it in GitHub Desktop.

Select an option

Save geowa4/4735976 to your computer and use it in GitHub Desktop.
Project Euler Problem #16
import Data.Char (digitToInt)
euler16 :: Int
euler16 = sum $ map digitToInt (show (2^1000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment