- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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.
Advertisements