#include <bits/stdc++.h>
using namespace std;
const long double pi = asin(1) * 2;
const long long M = 1000000007;
long long pow1(long long a, long long b) {
  int res = 1;
  while (b > 0) {
    if (b & 1) {
      res = (res * a) % M;
    }
    a = (a * a) % M;
    b >>= 1;
  }
  return res % M;
}
const long long N = 100001;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int t;
  t = 1;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    for (long long i = 4 * n; i > 2 * n; i -= 2) {
      cout << i << " ";
    }
    cout << "\n";
  }
  return 0;
}
