#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long c = 0, i = 4 * n;
    while (c < n) {
      c++;
      cout << i << " ";
      i -= 2;
    }
    cout << endl;
  }
  return 0;
}
