Given an array of integers find the pair in the array with maximum GCD.
The first line of the input contains an integer T denoting number of Tetscase. The first line oof each Test case contains an integer N, denoting size of the array. The next line contains N space separated integers.
Print the Maximum Gcd.
1 2 3 4 5
The pair (2,4) has the maximum gcd i.e. 2.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.