for project euler no 7