Project Euler solutions in Scala