project euler problems in scala