Solution of problems in project Euler using Scala