Attempting the Project Euler problems in Scala