#include <bits/stdc++.h>
using namespace std;
void test() {
  int i, n;
  cin >> n;
  i = 4 * n;
  while (n--) {
    cout << i << " ";
    i -= 2;
  }
  cout << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  cin >> t;
  while (t--) {
    test();
  }
}
