We define MEX Dividend of an array as the smallest positive integer not present in the array which is divisible by at least one of the elements of the array.
Given an array A of size n, your task is to print the MEX Dividend of the array.
Input
Input starts with a single integer T(1≤T≤105), number of test cases.
Each test case starts with an integer n(1≤n≤5∗105), the size of the array.
The next line contains n space separated integers, A1,A2,…,An(1≤Ai≤109), the elements of the array.
Note: It is guaranteed that sum of n in all the test cases doesn’t exceed 106.
Output
For each test case print an integer, the answer to that test case in a separate line.