#include #include using namespace std; typedef long long ll; int main() { int T,N,res; cin>>T; for(int i =0; i>N; res = (ll)sqrt(N) + (ll)cbrt(N) - ll(sqrt( cbrt(N))) ; cout<