Suppose the function $f(n)$ is defined as the number of $\ast$ printed in the following code
for(int i = 0; i<n; i++) {
for(int j = i; j<n; j++) {
for(int k = j + 200; k<2n; k++) {
for( int r = k^2; r<n; r++) {
print(*);
}
}
}
}
I suspect the answer is $\Theta(n^{2.5})$, by running the code at $n=5000$ and $n=50000$, but I do not have a rigid proof.
Can anyone enlighten me? Thank you!