#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using cd = complex<double>;
using ul = unsigned long;
void f_io() {
  ios_base ::sync_with_stdio(false);
  cin.tie(nullptr);
}
int f[(ll)(15e4 + 7)];
ll mult(ll a, ll b) {
  return ((a % (ll)(998244353)) * (b % (ll)(998244353))) % (ll)(998244353);
}
ll add(ll a, ll b) {
  b = ((b % (ll)(998244353)) + (ll)(998244353)) % (ll)(998244353);
  return (a + b) % (ll)(998244353);
}
ll pw(ll a, ll b) {
  ll r = 1;
  while (b) {
    if (b & 1) {
      r *= a;
    }
    b >>= 1;
    a *= a;
  }
  return r;
}
ll nck(int n, int k) {
  if (n < 0 || k < 0 || n > k) {
    return 0;
  }
  return mult(f[n], pw(mult(f[n - k], f[k]), (ll)(998244353) - 2));
}
int main() {
  ll t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    for (int i = 0; i < n; i++) {
      cout << 2 * n + i * 2 << " ";
    }
    cout << "\n";
  }
}
