Created
June 12, 2013 05:59
-
-
Save mbc9news/5763118 to your computer and use it in GitHub Desktop.
This file contains 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
import Math._ | |
print((for(a <-1 to 1000; b <- 1 to 1000; c <- 1 to 1000; if a<b; if b<c; if a+b+c equals 1000; if pow(a,2)+pow(b,2) equals pow(c,2)) yield (a*b*c)).toList(0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment