My solution for project euler problems