#include <bits/stdc++.h>
using namespace std;
void judge() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
void solve() {
  int t = 1;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int a = 0;
    for (long long i = 0; i < n; i++) {
      cout << 4 * n - a << " ";
      a += 2;
    }
    cout << endl;
  }
}
int32_t main() {
  solve();
  return 0;
}
