Created
September 28, 2010 09:03
-
-
Save oskimura/600652 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
euler9 = [ (a*b*z)|m<-[1..1000],n<-[1..1000],m>n,let z = m*m+n*n | |
, let a = m*m-n*n | |
, let b = 2*m*n | |
, (a+b+z)==1000 | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment