Minimum deletions required to make GCD of the array equal to 1
Given an array arr[] of N integers, the task is to find the minimum deletions required to make the GCD of the resulting array elements equal to 1. If it is impossible then print -1.Examples: Input: arr[] = {2, 4, 6, 3} Output: 0 It is clear that GCD(2, 4, 6, 3) = 1 So, we do not need to delete any e