Ammar and Antwan are playing a game with two multisets $$$a$$$ and $$$b$$$, initially $$$a$$$ contains $$$n$$$ integers and $$$b$$$ is empty.
Define $$$F(x)$$$ as the greatest divisor of $$$x$$$ less than $$$x$$$, in other words, the greatest $$$y$$$ such that $$$y \lt x$$$ and $$$y$$$ divides $$$x$$$ .
The game proceeds as follows: the players take turns with Ammar starting. On each turn, a player will perform the following operation:
Ammar loves primes and wants to maximize the number of primes in $$$b$$$, while Antwan hates primes and wants to minimize this number. In their universe, the number $$$1$$$ is considered a prime number.
Determine the number of primes (considering $$$1$$$ a prime ) in $$$b$$$ after the game ends if both players play optimally.
The first line contains one integer $$$t \: (1 \le t \le 10^3)$$$ — the number of test cases.
The first line of each test case consists of a single integer $$$n \: (1 \le n \le 10^5)$$$.
The second line of each test case contains $$$n$$$ integers $$$a_1, a_2, \ldots, a_n \: (2 \le a_i \le 10^6)$$$.
It is guaranteed that the sum of $$$n$$$ over all test cases doesn't exceed $$$10^5$$$.
For each test case, output the number of primes (considering 1 a prime) in $$$b$$$ after the game ends if both players play optimally.
252 3 20 30 5210 5
4 2