2003' ACM/ICPCѵϰ 10

D: Sum-up the Primes (II)