#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  for (int i = 0; i < a; ++i) {
    int b;
    cin >> b;
    int strt = b * 2;
    for (int j = 0; j < b; ++j) {
      cout << strt << " ";
      strt = strt + 2;
    }
    cout << "\n";
  }
  return 0;
}
