Kotori and her

classmates are going to the park. For convenience, their teacher Umi has numbered the students from

to

and decides to form the students into some groups, where each group consists of exactly two students.
For some reason, Kotori requires that the indices of the two students in the same group should have a common divisor greater than

. Note that each student can only belong to at most one group, and it's not necessary that every student belongs to a group.
Please help Kotori form as many groups as possible.
输入描述:
There are multiple test cases. The first line of the input contains an integer
indicating the number of test cases. For each test case:
The first and only line contains an integer
(
) indicating the number of students.
It's guaranteed that the sum of
of all test cases will not exceed
.
输出描述:
For each test case output one line. The line first contains an integer
indicating the number of groups, then
integers
follow, indicating that student
and
belong to the same group, student
and
belong to the same group, ..., student
and
belong to the same group. The integers in a line are separated by a space. If there are multiple valid answers, you can print any of them.
Please, DO NOT output extra spaces at the end of each line, otherwise your answer may be considered incorrect!