Skip to content

Instantly share code, notes, and snippets.

@kozake
Last active December 10, 2015 02:18
Show Gist options
  • Save kozake/4367053 to your computer and use it in GitHub Desktop.
Save kozake/4367053 to your computer and use it in GitHub Desktop.
Project Euler Problem 1
/**
* Project Euler Problem 1
*/
object P1 {
def answer() = (1 to 999).filter(n => n % 3 == 0 || n % 5 == 0).sum
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment