Solutions to project euler problems in scala