High School Mathematics
For a given number N, find the count of occurance of N within twin primes.
First of all for the given number N, check that if N is prime.
If N is composite there is no chance of being in twin primes.
It is to be noted that it is nowhere mentioned that the given number will be prime.
If it is composite then print 0.
Else check if N-2 is prime, if it is, increment count by 1.
Then check if N+2 is prime, if it is, increment count by 1.
And print the result.