#include <bits/stdc++.h>
using namespace std;
long long Set(long long N, long long pos) { return N = N | (1LL << pos); }
long long reset(long long N, long long pos) { return N = N & ~(1LL << pos); }
bool check(long long N, long long pos) { return (bool)(N & (1LL << pos)); }
long long dx[] = {1, 0, -1, 0};
long long dy[] = {0, 1, 0, -1};
long long vis[1000005];
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long x = n * 2;
    for (long long i = 0; i < n; i++) {
      cout << x << " ";
      x += 2;
    }
    cout << endl;
  }
}
