#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; ++i) {
    int n;
    cin >> n;
    for (int i = 1; i <= n; ++i) {
      cout << 2 * n + 2 * i << " ";
    }
    cout << "\n";
  }
  return 0;
}
