#include <bits/stdc++.h>
using namespace std;
using ll = long long;
bool prime(int x) {
  if (x == 2) return true;
  if (x < 2) return false;
  for (int i = 2; i * i <= x; ++i) {
    if (x % i == 0) return false;
  }
  return true;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> a;
    int cur = n * 4;
    while (a.size() < n) {
      bool ok = true;
      for (int x : a)
        if (x % cur == 0) ok = false;
      if (ok) {
        a.push_back(cur);
      }
      cur -= 2;
    }
    for (int x : a) cout << x << " ";
    cout << '\n';
  }
}
