#include <bits/stdc++.h>
using namespace std;
long long t, n;
int main() {
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 0; i < n; i++) cout << 4 * n - i * 2 << ' ';
    cout << endl;
  }
}
