Scala solutions to projects euler problems