One of the fields where they are used a lot is cryptography. Prime Numbers play important roles in computer science. For example, 11 is a prime number as it can only be represented as 11 * 1, but 8 is a composite number as it can be represented as 2 * 4 as well as 8 * 1. Introduction to Prime NumbersĪ prime number is a natural number that is only divisible by one and itself, which means it can only be represented as a product of one and itselfĪny number that is not prime is known as a composite number, meaning that it can be formed as a product of smaller numbers. Let us get started with Finding the twin primes up to N (Twin Prime Conjecture). We will also look at an efficient algorithm for finding the first twin prime pairs up to a number N. In this article, we will learn about prime numbers and the twin prime conjecture.