The greedy pirate Dimash found a treasury. It consists of $$$n$$$ piles of coins, numbered from $$$1$$$ to $$$n$$$. The $$$i$$$-th pile contains exactly $$$a_i$$$ coins. Pirate Dimash has a number $$$x$$$ that he can use to steal coins from the treasury. The stealing process works as follows:
Your task is to help the pirate steal the maximum possible number of coins. Find the maximum number of coins that can be stolen from the treasury.
$$$^{\text{∗}}$$$$$$\gcd(a_i, x)$$$ denotes the greatest common divisor (GCD) of integers $$$a_i$$$ and $$$x$$$.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^4$$$). The description of the test cases follows.
The first line of each test case contains two integers $$$n$$$ and $$$x$$$ ($$$1\le n, x\le 3\cdot 10^5$$$) — the number of piles of coins in the treasury and the pirate's number.
The second line of each test case contains $$$n$$$ integers $$$a_1, a_2, \ldots a_n$$$ ($$$1 \le a_i \le 3\cdot 10^5$$$).
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$3\cdot 10^5$$$.
For each test case, output one number — the maximum number of coins that can be stolen.
53 12 3 53 42 3 44 22 2 2 26 62 3 2 3 2 37 69 9 4 4 4 4 4
068920
In the first test case, no coin can be stolen.
In the second test case, the pirate steals as follows.