Mean Value Theorems in Prime Number Theory