Add gcd and prime sieve