#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--) {
    int n;
    cin >> n;
    for (int i = 0, j = 0; i < n; i++, j += 2) {
      cout << 4 * n - j << " ";
    }
    cout << endl;
  }
  return 0;
}
