#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int test;
  cin >> test;
  while (test--) {
    int n;
    cin >> n;
    for (int i = 2 * n, j = 0; j < n; i += 2, ++j) {
      cout << i << " ";
    }
    cout << endl;
  }
  return 0;
}
