Count Connected Components in LCM Graph

Count Connected Components in LCM Graph - Coding Problem | K5kC