Project euler assignments on Scala language