My code for project euler problems