Skip to content

Instantly share code, notes, and snippets.

@clementi
Created January 29, 2011 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clementi/801520 to your computer and use it in GitHub Desktop.
Save clementi/801520 to your computer and use it in GitHub Desktop.
Project Euler Problem 9 Solution
head [ (a, b, c) | c <- [1..], b <- [1..c], a <- [1..b], a^2 + b^2 == c^2, a + b + c == 1000 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment