Project Euler with Scala