int j=2;
int sum=0;
while(j<n){
int k=j;
while(k<n){
sum+=k;
k*=k;
}
j+=log(k);
}
I feel this problem is so difficult. How do I figure it out?
int j=2;
int sum=0;
while(j<n){
int k=j;
while(k<n){
sum+=k;
k*=k;
}
j+=log(k);
}
I feel this problem is so difficult. How do I figure it out?