Given an array of Positive Integers, Count the pairs whose product is divisible by K

Example: 
		Array: [2, 6, 1, 7, 8],  K=4
		Output: 5
		Explanation: (2, 6) , (2, 8),  (6, 8),  (1, 8),  (7, 8) product of all the pairs are divisible by K.
Comments (2)