Skip to content

Instantly share code, notes, and snippets.

@fbiville
Created January 4, 2015 14:10
Show Gist options
  • Select an option

  • Save fbiville/7de2d44c9c7dabe3239a to your computer and use it in GitHub Desktop.

Select an option

Save fbiville/7de2d44c9c7dabe3239a to your computer and use it in GitHub Desktop.
head [ (a*b*c,a,b,c) | c <- [3..1000], b <- [2..(c-1)], a <- [1..(b-1)], 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