Skip to content

Instantly share code, notes, and snippets.

@kozake
Last active December 10, 2015 02:28
Show Gist options
  • Save kozake/4367378 to your computer and use it in GitHub Desktop.
Save kozake/4367378 to your computer and use it in GitHub Desktop.
Project Euler Problem 6
/**
* Project Euler Problem 6
*/
object P6 {
def answer():BigInt = BigInt((1 to 100).sum).pow(2) - (1 to 100).map(BigInt(_).pow(2)).sum
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment