#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    if (n == 1)
      cout << 2 << endl;
    else {
      int x = 4 * n;
      while (n--) {
        cout << x << " ";
        x -= 2;
      }
    }
    cout << '\n';
  }
}
