Project Euler problems solved using Scala