#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e6 + 7, INF = 1e9;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  long long tt;
  cin >> tt;
  while (tt--) {
    long long n;
    cin >> n;
    if (n < 4)
      cout << "-1\n";
    else {
      for (long long i = n - (n % 2 == 0); i > 0; i -= 2) cout << i << ' ';
      cout << "4 2 ";
      for (long long i = 6; i <= n; i += 2) cout << i << ' ';
      cout << '\n';
    }
  }
}
