.
Tuesday, 16 December 2014
Scala 1
Solution to
Project Euler Problem 1
in Scala:
Array.range(1, 1000).filter { x => (x % 3 == 0) || (x % 5 == 0) }.sum
Nice.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment