#include <bits/stdc++.h>
using namespace std;
#define int long long
#define quickread                     \
    ios_base::sync_with_stdio(false); \
    cin.tie(NULL);                    \
    cout.tie(NULL);
#define pb push_back
#define all(x) x.begin(), x.end()
#define hii cout << "Hii there Sparky! \n"
#define endl '\n'
#define mod 1000000007
//#define mod 998244353
#define maxn 100010 //check the limits, dummy

void solve() {
    int n;
    cin >> n;
    int arr[n];
    for (int i = 0; i < n; i++) {
        cin >> arr[i];
    }
    int p[] = {1000000007, 1000000009};
    int ptr = 0;
    cout << n / 2 << endl;
    for (int i = 0; i < n - 1; i += 2) {
        arr[i] = min(arr[i], arr[i + 1]);
        arr[i + 1] = p[0];
        cout << i + 1 << " " << i + 2 << " " << arr[i] << " " << arr[i + 1] << endl;
    }
    
}

int32_t main() {
    quickread;
    int test = 1;
    cin >> test;
    for (int i = 0; i < test; i++) {
        solve();
    }
    return 0;
}