Write a C++ program which reads a given integer n and prints its twin
prime.
"A twin prime is a prime number that is either 2 less or 2 more than another prime
number" for example, either member of the twin prime pair (41, 43). In other
words, a twin prime is a prime that has a prime gap of two".
Sample Output:
Enter an integer:
11
Twin prime number of 11 is:
13



Answer :

Other Questions