#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    for (int i = 4 * n; i > 2 * n; i -= 2) {
      cout << i << " ";
    }
    cout << endl;
  }
}
