#include <bits/stdc++.h>
using namespace std;
template <class T>
T sqr(T a) {
  return a * a;
}
template <class T>
T abs(T x) {
  if (x < 0) return -x;
  return x;
}
const double eps = 1e-8;
const double pi = acos(-1.0);
int main() {
  int tks, ks = 1;
  scanf("%d", &tks);
  while (tks--) {
    int i, n;
    scanf("%d", &n);
    int t = n;
    n = 4 * n;
    for (i = 0; i < t; i++) {
      printf("%d ", n);
      n -= 2;
    }
    printf("\n");
  }
  return 0;
}
