UVa 10924 - Prime Words

Summary
Sum up the value of a word by mapping it from $$[a-zA-Z] => ( 1, 2, 3, \ldots, 52 )$$, and then check if that sum is a prime number.

Explanation
The straightforward approach for checking primes is good enough for this problem.

Gotcha's

 * 1 is considered a prime in this problem, though it isn't normally.

Solutions

 * Code All the Problems

Input
UFRN contest AcM a

Output
It is a prime word. It is not a prime word. It is not a prime word. It is a prime word.