You are given an array a of n integers. You take every subsequence of 2 lengths and the GCD of that subsequence and insert into a new array.
What is the MEX of the new array?
Note: The MEX of an array is equal to the smallest positive integer that is not present in the array. For example, MEX(1,2,4,2,3,6,7) = 5.
Input format
Output format
Print a single integer denoting the MEX of the new array for each test case.
Constraints
1<=t<=20
1<=n<=100000
1<=ai<=100000
Here, a = {1,2,4,8}. possible all gcd of 2 length sunsequence = {1,1,1,2,2,4} so MEX = 3.