You are given an integer array $$$a$$$ containing $$$n$$$ elements.
Find the maximum value of $$$^\dagger$$$ $$$gcd(a_1, a_2, a_3, \cdots , a_n)$$$, after applying the following operation exactly once :
$$$^\dagger$$$ $$$gcd(a_1, a_2, a_3, \cdots , a_n)$$$ denotes the greatest common divisor of $$$a_1, a_2, a_3, \cdots , a_n$$$.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^3$$$). The description of the test cases follows.
The first line of each test case contains single integer $$$n$$$ ($$$3 \le n \le 10^5$$$) — the length of the array.
The second line of each test case contains $$$n$$$ integers $$$a_1,a_2,\cdots,a_n$$$ ($$$1 \le a_{i} \le 10^9$$$).
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$10^5$$$.
For each test case, print single integer — the maximum value of $$$gcd(a_1, a_2, a_3, \cdots , a_n)$$$.
432 3 244 3 2 164 4 3 3 2 293 6 9 2 3 6 9 3 6
3 2 2 3
In the $$$1$$$-th test case, Choose $$$i = 1$$$ and $$$j = 3$$$ and change $$$a_i$$$ to $$$9$$$ and $$$a_j$$$ to $$$9$$$.
So the final array is $$$9, 3, 9$$$.
Hence, $$$gcd(9, 3, 9) = 3$$$.