#include <bits/stdc++.h>
using namespace std;
int main() {
  long long test;
  cin >> test;
  while (test > 0) {
    long long n, temp, copy;
    test--;
    cin >> n;
    temp = (4 * n) / 2;
    copy = n;
    while (copy > 0) {
      cout << temp << " ";
      temp = temp + 2;
      copy--;
    }
    cout << "\n";
  }
}
