#include <bits/stdc++.h>
using namespace std;
void fastio() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
void solve() {
  long long n;
  cin >> n;
  long long i = 4 * n, cnt = n;
  while (cnt--) {
    cout << i << " ";
    i -= 2;
  }
  cout << "\n";
}
int32_t main() {
  fastio();
  long long t;
  cin >> t;
  while (t--) solve();
  return 0;
}
