#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr static int mod = 1e9 + 7;
constexpr static int inf = (1 << 30) - 1;
constexpr static ll infll = (1LL << 61) - 1;
int program_init = (ios_base::sync_with_stdio(false), cin.tie(nullptr),
                    cout << fixed << setprecision(15), 0);
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
int main() {
  int t;
  cin >> t;
  while (t--) {
    int N;
    cin >> N;
    vector<int> a;
    for (int i = 2 * N; i < 4 * N; i += 2) {
      a.push_back(i);
    }
    for (int i = 0; i < N; i++) {
      cout << a[i] << (i == N - 1 ? "\n" : " ");
    }
  }
}
