#include <bits/stdc++.h>
int a[500];
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int n;
    scanf("%d", &n);
    memset(a, 0, sizeof(a));
    int x = 4 * n;
    for (int i = 1; i <= n; i++) {
      a[i] = x - 2 * (i - 1);
    }
    for (int i = 1; i <= n; i++) {
      printf("%d%c", a[i], i == n ? '\n' : ' ');
    }
  }
  return 0;
}
