solve euler 75 using Euclid's formula