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