Added solution to common prime divisors

Not very nice though