Solved problem 77 (prime summations).