#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    if (n == 1)
      cout << 4 << endl;
    else if (n == 2)
      cout << 6 << " " << 8 << endl;
    else if (n == 3)
      cout << 8 << " " << 10 << " " << 12 << endl;
    else {
      int c = 0;
      for (int i = 4 * n; c < n; i -= 2, c++) cout << i << " ";
      cout << endl;
    }
  }
  return 0;
}
