solution to problem 79 on project euler