题目描述
Link to Russian translation of problem
You are given positive integer N. How many unordered pairs of integers from 1 to N are coprime?
Input
The first line contains one integer T denoting the number of test cases.
The following T lines contain one number each - N and describe each test case.
Output
For each test case output one integer per line - answer for the question.
Constraints
N ≤ 10^7
T ≤ 10
SAMPLE INPUT
2
3
4
SAMPLE OUTPUT
4
6
输入格式
见题面
输出格式
见题面
样例输入
10
97072
93218
92415
90216
92714
90865
95183
90385
90757
98939
样例输出
992718064
54235526
2941343274
741430020
1335782336
442756472
73458204
2440910896
234911112
82097330