Project euler problems resolution