You will be given an integer . is a prime number. You have to determine if adding any other prime number to it will produce a new prime number.
The input will contain a single integer (, and is a prime number).
Print “Yes” or “No” (w/o quotes) to indicate if adding a prime number to can produce a new prime number.
Input | Output |
---|---|
5 | Yes |
Adding 2 to 5, where 2 is also a prime number, produces 7. Since 7 is a prime number, the output should be “Yes” (w/o quotes). |
Input | Output |
---|---|
7 | No |