my code for project euler