added gcd and prime