#include <bits/stdc++.h>
using namespace std;
int n;
int a;
void solve() {
  cin >> n;
  a = 4 * n - 2;
  for (int i = 0; i < n; i++) {
    cout << a << " ";
    a -= 2;
  }
  cout << "\n";
}
int main() {
  int t = 1;
  cin >> t;
  while (t-- > 0) {
    solve();
  }
  return 0;
}
