#include <bits/stdc++.h>
using namespace std;
bool was[500];
int main() {
  int t;
  cin >> t;
  while (t--) {
    int x;
    cin >> x;
    int ans = x * 4;
    for (int i = 1; i <= x; ++i) {
      cout << ans << ' ';
      ans -= 2;
    }
    cout << endl;
  }
  return 0;
}
