Number of coprimes
Given array of N elements. Find number of coprime pairs.
1 <= N <= 300001 <= A[i] <= 10^8
TL: 0.6sML: 64MB
Leetcode Weekly 498 Solution Discussion