Disjoint set for longest consecutive subsquence finished; print prime factor of a positive integer finished