#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int tc;
  cin >> tc;
  while (tc--) {
    int n;
    cin >> n;
    vector<int> v;
    for (int i = 4; i <= 4 * n; i++) {
      if (i % 2 == 0) {
        v.emplace_back(i);
      }
    }
    reverse(v.begin(), v.end());
    for (int i = 0; i < n; i++) {
      cout << v[i] << " ";
    }
    cout << '\n';
  }
  return 0;
}
