Solutions of project euler problems in scala