#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
int n;
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    scanf("%d", &n);
    int nn = 2 * n;
    for (int i = 1; i <= n; i++) {
      printf(i == n ? "%d\n" : "%d ", nn);
      nn += 2;
    }
  }
  return 0;
}
