Project Euler problems using scala