#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 5;
const int inf = 1e9;
const long long OO = 1e18;
const long long MOD = 1e9 + 7;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, tmp, r;
    cin >> n;
    tmp = n;
    r = 4 * n;
    while (tmp--) {
      cout << r << " ";
      r -= 2;
    }
    cout << "\n";
  }
}
