Abstract: We investigate the asymptotic behavior of the partition function defined by , where denotes the von Mangoldt function. Improving a result of Richmond, we show that , where is a positive constant and denotes the times iterated logarithm. We also show that the error term can be improved to if and only if the Riemann Hypothesis holds.