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