Let and be prime numbers and be a whole number, such that . Find the sum of all possible values of .
Details:
needn't be a prime number.
is nether prime nor composite.
You may use the fact that all primes except and can be expressed in the form .