#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int lst = 4 * n;
    for (int i = n; i >= 1; i--) {
      cout << lst << ' ';
      lst -= 2;
    }
    cout << '\n';
  }
  return 0;
}
