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