Problem solving of project euler problems