#include <bits/stdc++.h>
using namespace std;
const long long N = 200005;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long testcases;
  cin >> testcases;
  while (testcases--) {
    long long n;
    cin >> n;
    vector<long long> v;
    long long j = 2 * n;
    while (v.size() != n) {
      v.push_back(j);
      j += 2;
    }
    for (auto i : v) cout << i << " ";
    cout << "\n";
  }
  return 0;
}
