14304 - Prime Number   

Description

Create a program that finds all prime numbers (質數) and calculates their sum.

Note: 1 is not a prime number!

Input

A single line containing n space-separated integers.

  • 1 <= n <= 100

  • Each integer in the line ranges from 1 to 1000.

 

Output

A single integer indicates the sum of all prime numbers found in the line.

 

Sample Input  Download

Sample Output  Download

Tags




Discuss