This question is only a curiosity, that I asked myself few minutes ago.
Let the arithmetical function $$f(n)=\int_0^n \left \lfloor{\sqrt{x}}\right \rfloor dx,$$ where $\left \lfloor{x}\right \rfloor$ is the floor function satisfying thus $x=\left \lfloor{x}\right \rfloor+\{x\}$, being $\{x\}$ the fractional part function. Thus when $n$ is a positive integer (in fact I've interested only in such case, is a positive integer) then $f(n)$ is a positive integer.
Now for prime pairs $n_k$ and $n_k+2$, that is a prime $n_k=p$ with $p+2$ also a prime number, I am interesting to get the sequence of the first (say $100$) differences $$f(p+2)-f(p).$$
Question. Can you provide us the sequence $$f(n_k+2)-f(n_k)$$ when $1\leq k\leq 100$, with $n_k$ a prime number and $n_k+2$ also a prime number? Thanks in advance.
Curently I have no good abilities in computations with online calculators or computers, thus I am asking this with the purpose to discard a pattern that I've observed in the firsts pairs. Perhaps my question also is not interesting by the values that takes previous arithmetical function. I want to explore it with this exercise.
A quick Mathematica program can generate this sequence: