problem3 Solution for the  project euler problem 3