Given an array of elements find all the prime factors of the LCM of the given numbers.

Input:
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. The first line of each test case contains an integer N denoting the size of array A.The second line of each test case N space separated integers denoting the elements of array A.

Output:
Print the prime factors of the lcm of the given array in a sorted order. Print the answer for each test case in a new line.

Constraints:
1 <= T <= 100
1 <= N <= 10^{5}
1 <= A[ ] <= 10^{6}