Solving ProjectEuler problems with Scala