Project Euler Problems My Answer in Scala