#include using namespace std; #include using namespace atcoder; using ll=long long; using Graph=vector>>; #define MAX 60 #define MOD 1000000007 #define INF 1000000000000000000 vector p; vector p_table(MAX+1,true); void prime(){ p_table.at(0)=false,p_table.at(1)=false; for(int i=2;i<=MAX;i++){ if(p_table.at(i)){ p.push_back(i); for(int j=2;i*j<=MAX;j++){ p_table.at(i*j)=false; } } } } int n; ll my_pow(ll x,int n){ ll ret=1; while(n>0){ if((n&1)==1){ ret=ret*x; } n>>=1; x=x*x; } return ret; } //x以下の累乗数の個数 ll counting(ll x){ if(x==0){ return 0; } ll ans=1; for(int i=0;i=2e18){ right=c; continue; } if(my_pow(c,b)<=x){ left=c; }else{ right=c; } } ans+=left-1; } return ans; } void solve(){ ll K; cin>>K; ll left=0; ll right=1000000000000000001; while(left+1>T; prime(); n=p.size(); for(int i=0;i