Scala exercise project with Project Euler