Solving project Euler problems with scala.