Function to find the maximum sum of count of distinct prime factors of K array elements
using System ; public class GFG { public static int MAX = 1000000 ; static void maxSumOfDistinctPrimeFactors ( int [ ] arr , int N , int K ) {