Tuesday , December 6 2016
Home / C / c program to check for twin prime numbers

c program to check for twin prime numbers

Here is given c program for Twin Prime numbers.

But before let us see what exactly is a Twin Prime  number ?
A Twin Prime number are those numbers which are prime and having a difference of 2 between the two prime numbers.

Example: 11 and 13.
These numbers are itself prime numbers with a difference of 2 between them i.e d=13-11 which is 2 .Hence the two numbers are twin prime.

 OUTPUT:

c program for twin prime
c program to check for twin prime numbers
Also See:   Program in C to Draw a Pyramid

Check Also

Hide Mouse Pointer C Program

How to Hide a Mouse Pointer Program in C : This program will show and hide ...

Leave a Reply

Your email address will not be published. Required fields are marked *

Preventing spam * Time limit is exhausted. Please reload the CAPTCHA.