#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int mid = 2 * n;
    for (int i = mid; i < 4 * n; i += 2) {
      cout << i << ' ';
    }
    cout << '\n';
  }
}
