https://en.wikipedia.org/wiki/Thomae%27s_function
It seems to me that on every interval in $\mathbb{R}$, the function is bounded and its set of discontinuities is just the set of rational numbers in that interval, which is countable and therefore of measure zero, so it's Riemann integrable on every interval. But every page on the Internet I've found says that it's Riemann integrable on $[0,1]$ without saying anything about the rest of $\mathbb{R}$. Is my reasoning accurate?
Follow-up question: is it correct then to say that $F(x) = \int_0^x f(t) \,\mathrm{d}t$ where $f(t)$ denotes Thomae's function is by construction differentiable everywhere?
The motivation behind this is that I'm trying to look for a simple function that is differentiable but has a derivative that is discontinuous at infinitely many points.