made with Mathematica technology MathWorld

Semiprime
DOWNLOAD Mathematica Notebook

A semiprime, also called a 2-almost prime, biprime (Conway et al. 2008), or pq-number, is a composite number that is the product of two (possibly equal) primes. The first few are 4, 6, 9, 10, 14, 15, 21, 22, ... (Sloane's A001358). The first few semiprimes whose factors are distinct (i.e., the squarefree semiprimes) are 6, 10, 14, 15, 21, 22, 26, 33, 34, ... (Sloane's A006881).

The square of any prime number is by definition a semiprime. The largest known semiprime is therefore the square of the largest known prime.

A formula for the number of semiprimes less than or equal to n is given by

 pi^((2))(x)=sum_(k=1)^(pi(sqrt(x)))[pi(x/(p_k))-k+1],
(1)

where pi(x) is the prime counting function and p_k is the kth prime (R. G. Wilson V, pers. comm., Feb. 7, 2006; discovered independently by E. Noel and G. Panos around Jan. 2005, pers. comm., Jun. 13, 2006).

The numbers of semiprimes less than 10^n for n=1, 2, ... are 3, 34, 299, 2625, 23378, 210035, ... (Sloane's A066265).

For n=pq with p and q distinct, the following congruence is satisfied:

 p^q=p (mod n).
(2)

In addition, the totient function satisfies the simple identity

 phi(n)=n+1-(p+q).
(3)

Encryption algorithms such as RSA encryption rely on special large numbers that have as their factors two large primes. The following tables lists some special semiprimes that are the product of two large (distinct) primes.

n=pqdigits in ndigits in pdigits in q
38!+1452323
10^(48)+19492128
10^(50)+27512229
10^(54)-3542332
10^(53)+63542529
10^(55)-9552531
10^(63)+19643232
RSA-1291296465
RSA-1401407070
RSA-1551557878

SEE ALSO: Almost Prime, Chen's Theorem, Composite Number, Emirpimes, Greatest Prime Factor, Highly Composite Number, Landau's Problems, Large Number, Prime Factor, Prime Factorization, Prime Number, Rough Number, Round Number, RSA Encryption, RSA Number, Smooth Number

REFERENCES:

Conway, J. H.; Dietrich, H.; O'Brien, E. A. "Counting Groups: Gnus, Moas, and Other Exotica." Math. Intell. 30, 6-18, 2008.

Goldston, D. A.; Graham, S. W.; Pintz, J. and Yildirim, Y. "Small Gaps Between Primes or Almost Primes." 3 Jun 2005. http://arxiv.org/abs/math.NT/0506067.

Sloane, N. J. A. Sequences A001358/M3274, A0068814082, and A066265 in "The On-Line Encyclopedia of Integer Sequences."




CITE THIS AS:

Weisstein, Eric W. "Semiprime." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/Semiprime.html

The Wolfram Demonstrations Project Browse Topics View Latest
JUST RELEASED: Wolfram Mathematica 7