#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    if (n <= 3) {
      cout << -1 << endl;
      continue;
    }
    for (int i = n; i >= 1; i--) {
      if (i % 2 == 0) continue;
      cout << i << " ";
    }
    cout << "4 2 ";
    for (int i = 6; i <= n; i += 2) cout << i << " ";
    cout << endl;
  }
}
