Empresa engajada
How would you find the common primes in two integers ?
Sigiloso
Compute the GCD of the two numbers using Euclid's algorithm. Prime factorise the GCD.
GCD(int j, int i){ //assume i>j while(j!=0){ int temp=i%j; int i=j; int j=temp; } return i; }
Fique por dentro de todas as oportunidades e dicas internas seguindo as empresas de seus sonhos.
Comece a buscar vagas para receber atualizações e recomendações personalizadas.