func_code_string: #include <bits/stdc++.h>   using namespace std;   const double Eps = 1e-9;   int Mod = 1000000000 + 7;   int n, m, q, k;   int Arr[100010];   bool prime[10010];   bool ok = true;   void sieve() {     for (int i = 2; i * i <= 1e4; i++) {       if (prime[i] == true)         for (int j = i * 2; j <= 1e4; j++) {           prime[j] = false;         }     }   }   int dp[100010];   int cnt;   int main() {     ios::sync_with_stdio(0);     ;     memset(prime, true, sizeof(prime));     sieve();     cin >> n;     for (int i = 0; i < n; i++) {       cnt = 0;       cin >> Arr[i];       if (Arr[i] & 1 && Arr[i] >= 9) {         Arr[i] -= 9;         cnt++;       }       if (Arr[i] % 4 == 0 && Arr[i] >= 0) {         cout << cnt + Arr[i] / 4 << endl;         continue;       } else if ((Arr[i] - 6) % 4 == 0 && (Arr[i] - 6) >= 0) {         cout << cnt + 1 + (Arr[i] - 6) / 4 << endl;         continue;       }       cout << -1 << endl;     }   }   