Minimize count of integers to be added in Array to make each adjacent pairs co-prime
Given an integer array arr[] of N integers, the task is to make each adjacent pair in the array co prime, by adding minimum number of integers in the array. Return -1 if not possible. Example: Input: N = 2, arr = [7, 42]Output: 1Explanation: After adding 11, the final array will be [7, 11, 42]. All