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.
The Dirichlet function is a classic example of a function that is used in real analysis to illustrate concepts of continuity and differentiability.
New to topics? Read the docs here!