Euler problems solved in Scala