#include <bits/stdc++.h>
using namespace std;
const int maxn = 3e5 + 10;
const int mod = 998244353;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int c = 0;
    for (int i = 4 * n;; i -= 2) {
      cout << i << " ";
      c++;
      if (c == n) break;
    }
    cout << endl;
  }
  return 0;
}
