#include<bits/stdc++.h>using namespace std;int main(){ int t;scanf("%d",&t); while(t--){ long long n; cin>>n; puts((n&(n-1))?"YES":"NO"); }}
6 2 3 4 5 998244353 1099511627776
NO YES NO YES YES NO
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!