Skip to content

Instantly share code, notes, and snippets.

@reuk
Created August 18, 2013 10:08
Show Gist options
  • Save reuk/6260885 to your computer and use it in GitHub Desktop.
Save reuk/6260885 to your computer and use it in GitHub Desktop.
One-liner solution to Project Euler problem 56.
import Data.Char (digitToInt)
main = print $ maximum [sum $ map digitToInt $ show (a ^ b) | a <- [1..100], b <- [1..100]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment