Given a positive integer , calculate the sumwhere \mathrm{LCM}(i, n) denotes the least common multiple of the integers and .
The first line contains the number of test cases (1 \le t \le 300\,000). Each of the next lines contains an integer (1 \le n \le 10^6).
Print lines, one for each test case, containing the required sum.
Example 1