#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int c = 2;
    int n;
    cin >> n;
    int arr[2 * n];
    for (int i = 0; i < 2 * n; i++) {
      arr[i] = c;
      c += 2;
    }
    int i = n - 1;
    for (int j = 0; j < n; j++) {
      cout << arr[i + j] << " ";
    }
    cout << endl;
  }
  return 0;
}
