the solution of the CommonPrimeDivisors