gcd and isprime

gcd and isprime