C program to print twin prime numbers

C program to print twin prime numbers

Input:

Enter the range to find twin primes below it:
50

Output:

3 & 5 are twin primes
5 & 7 are twin primes
11 & 13 are twin primes
17 & 19 are twin primes
29 & 31 are twin primes
41 & 43 are twin primes

Implementation: