Given array with n elements unique values, q query’s two type: 1: change the value of the element to other value which unique(not appear in array). 2: find the minimum value > 1 which not divisible by any other value in arrays
Can any one help me to solve this problem ?