my attempt on project euler problems