Skip to content

Instantly share code, notes, and snippets.

@mbc9news
Created June 12, 2013 05:59
Show Gist options
  • Save mbc9news/5763118 to your computer and use it in GitHub Desktop.
Save mbc9news/5763118 to your computer and use it in GitHub Desktop.
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