Project Euler problems implemented in Scala