#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
vector<int> a;
int T, n;
int main() {
  scanf("%d", &T);
  while (T--) {
    scanf("%d", &n);
    int tmp = 4 * n;
    for (int i = 1; i <= n; i++) {
      a.push_back(tmp);
      tmp -= 2;
    }
    for (auto x : a) {
      printf("%d ", x);
    }
    printf("\n");
    a.clear();
  }
  return 0;
}
