Last active
December 16, 2015 11:09
-
-
Save outsideris/5425670 to your computer and use it in GitHub Desktop.
euler for PiS study
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 kr.ne.outsider | |
object p001 extends App { | |
val source = 1 until 1000 | |
val result = source.filter(x => x % 3 ==0 || x % 5 == 0).sum | |
println(result) //233168 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment