#include <bits/stdc++.h>
using namespace std;
void printline(vector<int> v) {
  for (int i = 0; i < (int)v.size(); i++) {
    if (i) cout << " ";
    cout << v[i];
  }
  cout << endl;
}
void printcol(vector<int> v) {
  for (auto x : v) cout << x << endl;
}
void solve() {
  int n;
  cin >> n;
  int base = 4 * n;
  while (n--) {
    cout << base << " ";
    base -= 2;
  }
  cout << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
