Created
December 26, 2012 05:51
-
-
Save siosio/4378227 to your computer and use it in GitHub Desktop.
Project Euler:Problem 1
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
package problem1 | |
fun main(args: Array<String>) { | |
println((1..999).filter { it % 3 == 0 || it % 5 == 0 }.fold(0) { total, n -> total + n }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment