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