#include <bits/stdc++.h>
using namespace std;
inline int rd() {
  int x = 0, flg = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') flg = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = x * 10 + (ch ^ 48);
    ch = getchar();
  }
  return x * flg;
}
int t;
int main() {
  t = rd();
  while (t--) {
    int n;
    n = rd();
    int ans = 4 * n;
    for (register int i = 1; i <= n; ++i) cout << ans << " ", ans -= 2;
    cout << endl;
  }
  return 0;
}
