You are given an array of unique positive integers nums.
Consider an undirected graph where:
• There are nums.length nodes labeled nums[0] through nums[nums.length - 1].
• An edge connects nums[i] and nums[j] if nums[i] and nums[j] share a common factor strictly greater than
Return the size of the largest connected component in the graph.
Constraints:
All the values of nums are unique.
You are given an array of unique positive integers nums.
Consider an undirected graph where:
• There are nums.length nodes labeled nums[0] through nums[nums.length - 1].
• An edge connects nums[i] and nums[j] if nums[i] and nums[j] share a common factor strictly greater than
Return the size of the largest connected component in the graph.
Constraints:
All the values of nums are unique.