Let $f:\mathbb{R} \to \mathbb{R}$ be an bounded ($(\exists M>0)(\forall x \in \mathbb{R}) |f(x)| \leq M$) and continuous function $(\forall x \in \mathbb{R})(\forall \epsilon > 0)(\exists \delta > 0)(\forall y \in \mathbb{R})|x-y|<\delta \Longrightarrow |f(x)-f(y)|<\epsilon$ and nonconstant. Does $f$ have to be integrable?
If there is counterexample, please tell me. If there is some theorem that says so, give me a link.