Given an array of distinct positive integers, connect two numbers if they share a common factor greater than 1. Return the size of the largest connected component.
Practise this challenge
All coding challenges