Getting wrong answer for 2nd and 3rd test case

please find the code in the above link

its not sum of primes , it is avout the sum of digits of prime, please read the statement of the question correctly