Loading...
Engaged Employer
How would you find the common primes in two integers ?
Anonymous
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; }
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.