How to find twin prime numbers between two numbers? For example 80 & 90?


To do: Find how many twin prime numbers are there between 80 and 90.

Solution: Two prime numbers whose difference is two are called twin-primes.

Two consecutive odd prime numbers are called twin-primes.

For example:

5, 7 are twin primes as they are prime numbers and their difference is two.

Similarly, {3,5}, {5,7}, {11,13,} and {17,19} are twin primes.

There are only two prime numbers between 80 and 90: 83 and 89. Their difference is 89 $-$ 83 = 6. So they are not twin primes.

To find twin primes between two numbers, first write down all the prime numbers. Then you can check the prime numbers for which the difference is two.


Tutorialspoint
Tutorialspoint

Simply Easy Learning

Updated on: 10-Oct-2022

94 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements