We compute the cohomology ring H*(X, Z/nZ) for X the spectrum of the ring of integers of a number field K. As an application, we give a non-vanishing formula for an invariant defined by Minhyong Kim.