#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e9 + 7;
long gcd(long a, long b) { return b ? gcd(b, a % b) : a; }
void process() {
  int n;
  cin >> n;
  int temp = 4 * n - 2;
  while (n--) {
    cout << temp << " ";
    temp -= 2;
  }
  cout << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t = 1;
  cin >> t;
  while (t--) process();
  return 0;
}
