Nepedia
Back to Discover
Advanced Reader
🔢

Semiprime

math Maturity 11-13 Next article →

In the study of number theory, mathematicians categorize natural numbers based on their building blocks. These building blocks are prime numbers, which are numbers divisible only by one and themselves. A semiprime is a specific type of natural number formed by multiplying exactly two prime numbers together. Because prime numbers are infinite, the number of semiprimes is also infinite. Some mathematicians refer to these as biprimes. This name uses the analogy of "prime" meaning "first" and "bi" meaning "second."

Arecibo message bw
Arecibo message bw

Semiprimes can be divided into two distinct categories based on their factors. If the two prime numbers used to create the semiprime are different, the number is called a discrete, distinct, or squarefree semiprime. However, if the two primes are the same, the result is a square number. For example, multiplying a prime by itself creates a square semiprime. These variations are part of a broader group known as almost-prime numbers. A squarefree semiprime is specifically called a 2-almost-prime. In contrast, a product of three primes is called a 3-almost-prime, or a triprime.

Arecibo message bw
Arecibo message bw

One important property of semiprimes involves their factors. A factor is a number that divides into another number without leaving a remainder. A composite number is any number that has more than two factors. Semiprimes are unique because they have no composite factors other than themselves. Consider the number 26 as an example. The factors of 26 are 1, 2, 13, and 26. In this set, only 26 is a composite number. This mathematical structure makes them very predictable in certain calculations.

Arecibo message bw
Arecibo message bw

Mathematicians have developed tools to count and analyze these numbers. In 2005, E. Noel and G. Panos discovered a specific counting formula for semiprimes. This formula helps determine the number of semiprimes that are less than or equal to a given number, denoted as $n$. The formula relies on the prime-counting function, which is written as $\pi(x)$. It also uses the notation $p_k$ to represent the $k$-th prime number. This allows researchers to understand the density of semiprimes within the number system.

Arecibo message bw
Arecibo message bw

Semiprimes play a vital role in the field of cryptography. Cryptography is the science of protecting information through codes. Many systems, such as the RSA cryptosystem, rely on the unique properties of semiprimes. These methods use pseudorandom number generators like Blum Blum Shub. The security of these systems depends on a specific difficulty in computation. It is very easy to multiply two large prime numbers to create a semiprime. However, it is extremely difficult to do the reverse. Finding the original prime factors of a massive semiprime is a major computational challenge.

Arecibo message bw
Arecibo message bw

To test the strength of these systems, RSA Security created the RSA Factoring Challenge. This was a competition to see if anyone could factor specific large semiprimes. The original challenge was launched in 1991. A successor called the New RSA Factoring Challenge began in 2001. This second challenge continued until it was withdrawn in 2007. Several prizes were awarded to those who successfully factored the numbers. These challenges help ensure that our digital encryption remains secure.

Arecibo message bw
Arecibo message bw

Beyond computer security, semiprimes have been used for interstellar communication. In 1974, the Arecibo message was sent as a radio signal toward a star cluster. This message used binary digits to create a bitmap image. The creators chose a semiprime number to define the dimensions of the image. Because the number was a semiprime, it could only be arranged into two distinct rectangular shapes. One arrangement used 23 rows and 73 columns. The other arrangement used 73 rows and 23 columns.

Arecibo message bw
Arecibo message bw

Finally, semiprimes are connected to many other complex mathematical concepts. They are closely related to Euler's totient function, which counts positive integers up to a number that are relatively prime to it. For a squarefree semiprime $n$ made of primes $p$ and $q$, this calculation is simplified. This specific mathematical relationship is a crucial part of how RSA encryption works. Understanding semiprimes helps mathematicians bridge the gap between simple multiplication and complex digital security.

Arecibo message bw
Arecibo message bw
668 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Arecibo message bw.svg
Arecibo message bw.svg
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.