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