We prove that the Riemann hypothesis is equivalent to the condition x 2 π(t) − li(t) dt < 0 for all x > 2. Here, π(t) is the prime-counting function and li(t) is the logarithmic integral. This makes explicit a claim of Pintz (1991). Moreover, we prove an analogous result for the Chebyshev function θ(t) and discuss the extent to which one can make related claims unconditionally.