solved problem 3 project euler finish #4