#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, count = 0, g = 1;
    cin >> n;
    vector<int> op;
    for (int i = 4 * n; i >= 2; i--) {
      int num = i;
      if (num % 2 == 0) {
        for (int j = 0; j < op.size(); j++) {
          if (num % op[j] != 0) {
            g = 1;
          } else {
            g = 0;
            break;
          }
        }
        if (g == 1) {
          cout << num << " ";
          op.push_back(num);
          count++;
        }
      }
      if (count == n) {
        break;
      }
    }
    cout << endl;
  }
  return 0;
}
