Recently, I was trying to solve a problem. To solve that I shall have to solve a sub problem. The sub problem is:
I will be provided some values. I want to find number of pairs possible for that set of values who have gcd>1
Can anyone suggest an efficient approach? I just want you to give me hints so that I can start from that point of view and move forward.