結果 : sum of prime numbers in the input in python using function