by July 17, 2012

onOnce again I misuse some of the fairly simple problem from Project Euler to fiddle around with a new programming language - this time it’s Scala.

So in case you haven’t read one of my earlier post on Project Euler this is the problems description:

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Find the sum of all the multiples of 3 or 5 below 1000.

My scala solution looks like this: