#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using vvi = vector<vi>;
int main() {
  int t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    int j = 4 * n;
    for (int i = 1; i <= n; i++) {
      cout << j << " ";
      j -= 2;
    }
    cout << "\n";
  }
}
