complete solution to problem 50, consecutive prime sum