Dirichlet function
= Dirichlet function
{c}
{wiki}
The indicator of the <rational numbers> is not <Riemann integrable> on a nondegenerate interval: every subinterval contains both rational and irrational points, so its lower sum is zero and its upper sum is the interval length.