Scala Code for Project Euler Problems