Semiprime

Product of two prime numbers

In mathematics, a semiprime is a natural number that is the product of exactly two prime numbers. The two primes in the product may equal each other, so the semiprimes include the squares of prime numbers. Because there are infinitely many prime numbers, there are also infinitely many semiprimes. Semiprimes are also called biprimes,[1] since they include two primes, or second numbers,[2] by analogy with how "prime" means "first".

Examples and variations

The semiprimes less than 100 are:

4, 6, 9, 10, 14, 15, 21, 22, 25, 26, 33, 34, 35, 38, 39, 46, 49, 51, 55, 57, 58, 62, 65, 69, 74, 77, 82, 85, 86, 87, 91, 93, 94, and 95 (sequence A001358 in the OEIS)

Semiprimes that are not square numbers are called discrete, distinct, or squarefree semiprimes:

6, 10, 14, 15, 21, 22, 26, 33, 34, 35, 38, 39, 46, 51, 55, 57, 58, 62, 65, 69, 74, 77, 82, 85, 86, 87, 91, 93, 94, 95, ... (sequence A006881 in the OEIS)

The semiprimes are the case k = 2 {\displaystyle k=2} of the k {\displaystyle k} -almost primes, numbers with exactly k {\displaystyle k} prime factors. However some sources use "semiprime" to refer to a larger set of numbers, the numbers with at most two prime factors (including unit (1), primes, and semiprimes).[3] These are:

1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 13, 14, 15, 17, 19, 21, 22, 23, 25, 26, 29, 31, 33, 34, 35, 37, 38, 39, 41, 43, 46, 47, 49, ... (sequence A037143 in the OEIS)

Formula for number of semiprimes

A semiprime counting formula was discovered by E. Noel and G. Panos in 2005. Let π 2 ( n ) {\displaystyle \pi _{2}(n)} denote the number of semiprimes less than or equal to n. Then

π 2 ( n ) = k = 1 π ( n ) [ π ( n / p k ) k + 1 ] {\displaystyle \pi _{2}(n)=\sum _{k=1}^{\pi ({\sqrt {n}})}[\pi (n/p_{k})-k+1]}
where π ( x ) {\displaystyle \pi (x)} is the prime-counting function and p k {\displaystyle p_{k}} denotes the kth prime.[4]

Properties

Semiprime numbers have no composite numbers as factors other than themselves.[5] For example, the number 26 is semiprime and its only factors are 1, 2, 13, and 26, of which only 26 is composite.

For a squarefree semiprime n = p q {\displaystyle n=pq} (with p q {\displaystyle p\neq q} ) the value of Euler's totient function φ ( n ) {\displaystyle \varphi (n)} (the number of positive integers less than or equal to n {\displaystyle n} that are relatively prime to n {\displaystyle n} ) takes the simple form

φ ( n ) = ( p 1 ) ( q 1 ) = n ( p + q ) + 1. {\displaystyle \varphi (n)=(p-1)(q-1)=n-(p+q)+1.}
This calculation is an important part of the application of semiprimes in the RSA cryptosystem.[6] For a square semiprime n = p 2 {\displaystyle n=p^{2}} , the formula is again simple:[6]
φ ( n ) = p ( p 1 ) = n p . {\displaystyle \varphi (n)=p(p-1)=n-p.}

Applications

The Arecibo message

Semiprimes are highly useful in the area of cryptography and number theory, most notably in public key cryptography, where they are used by RSA and pseudorandom number generators such as Blum Blum Shub. These methods rely on the fact that finding two large primes and multiplying them together (resulting in a semiprime) is computationally simple, whereas finding the original factors appears to be difficult. In the RSA Factoring Challenge, RSA Security offered prizes for the factoring of specific large semiprimes and several prizes were awarded. The original RSA Factoring Challenge was issued in 1991, and was replaced in 2001 by the New RSA Factoring Challenge, which was later withdrawn in 2007.[7]

In 1974 the Arecibo message was sent with a radio signal aimed at a star cluster. It consisted of 1679 {\displaystyle 1679} binary digits intended to be interpreted as a 23 × 73 {\displaystyle 23\times 73} bitmap image. The number 1679 = 23 73 {\displaystyle 1679=23\cdot 73} was chosen because it is a semiprime and therefore can be arranged into a rectangular image in only two distinct ways (23 rows and 73 columns, or 73 rows and 23 columns).[8]

See also

References

  1. ^ Sloane, N. J. A. (ed.). "Sequence A001358". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
  2. ^ Nowicki, Andrzej (2013-07-01), Second numbers in arithmetic progressions, arXiv:1306.6424
  3. ^ Stewart, Ian (2010). Professor Stewart's Cabinet of Mathematical Curiosities. Profile Books. p. 154. ISBN 9781847651280.
  4. ^ Ishmukhametov, Sh. T.; Sharifullina, F. F. (2014). "On distribution of semiprime numbers". Russian Mathematics. 58 (8): 43–48. doi:10.3103/S1066369X14080052. MR 3306238. S2CID 122410656.
  5. ^ French, John Homer (1889). Advanced Arithmetic for Secondary Schools. New York: Harper & Brothers. p. 53.
  6. ^ a b Cozzens, Margaret; Miller, Steven J. (2013). The Mathematics of Encryption: An Elementary Introduction. Mathematical World. Vol. 29. American Mathematical Society. p. 237. ISBN 9780821883211.
  7. ^ "The RSA Factoring Challenge is no longer active". RSA Laboratories. Archived from the original on 2013-07-27.
  8. ^ du Sautoy, Marcus (2011). The Number Mysteries: A Mathematical Odyssey through Everyday Life. St. Martin's Press. p. 19. ISBN 9780230120280.

External links

  • v
  • t
  • e
Divisibility-based sets of integers
Overview
Divisibility of 60
Factorization formsConstrained divisor sumsWith many divisorsAliquot sequence-relatedBase-dependentOther sets
  • v
  • t
  • e
Prime number classes
By formula
  • Fermat (22n + 1)
  • Mersenne (2p − 1)
  • Double Mersenne (22p−1 − 1)
  • Wagstaff (2p + 1)/3
  • Proth (k·2n + 1)
  • Factorial (n! ± 1)
  • Primorial (pn# ± 1)
  • Euclid (pn# + 1)
  • Pythagorean (4n + 1)
  • Pierpont (2m·3n + 1)
  • Quartan (x4 + y4)
  • Solinas (2m ± 2n ± 1)
  • Cullen (n·2n + 1)
  • Woodall (n·2n − 1)
  • Cuban (x3 − y3)/(x − y)
  • Leyland (xy + yx)
  • Thabit (3·2n − 1)
  • Williams ((b−1)·bn − 1)
  • Mills (A3n)
By integer sequence
By property
Base-dependent
Patterns
  • Twin (p, p + 2)
  • Bi-twin chain (n ± 1, 2n ± 1, 4n ± 1, …)
  • Triplet (p, p + 2 or p + 4, p + 6)
  • Quadruplet (p, p + 2, p + 6, p + 8)
  • k-tuple
  • Cousin (p, p + 4)
  • Sexy (p, p + 6)
  • Chen
  • Sophie Germain/Safe (p, 2p + 1)
  • Cunningham (p, 2p ± 1, 4p ± 3, 8p ± 7, ...)
  • Arithmetic progression (p + a·n, n = 0, 1, 2, 3, ...)
  • Balanced (consecutive p − n, p, p + n)
By size
Complex numbers
Composite numbers
Related topics
First 60 primes
  • 2
  • 3
  • 5
  • 7
  • 11
  • 13
  • 17
  • 19
  • 23
  • 29
  • 31
  • 37
  • 41
  • 43
  • 47
  • 53
  • 59
  • 61
  • 67
  • 71
  • 73
  • 79
  • 83
  • 89
  • 97
  • 101
  • 103
  • 107
  • 109
  • 113
  • 127
  • 131
  • 137
  • 139
  • 149
  • 151
  • 157
  • 163
  • 167
  • 173
  • 179
  • 181
  • 191
  • 193
  • 197
  • 199
  • 211
  • 223
  • 227
  • 229
  • 233
  • 239
  • 241
  • 251
  • 257
  • 263
  • 269
  • 271
  • 277
  • 281
  • v
  • t
  • e
Classes of natural numbers
Of the form a × 2b ± 1
Other polynomial numbers
Recursively defined numbers
Possessing a specific set of other numbers
Expressible via specific sums
2-dimensional
centered
non-centered
3-dimensional
centered
non-centered
pyramidal
4-dimensional
non-centered
Combinatorial numbers
Divisor functions
Prime omega functions
Euler's totient function
Aliquot sequences
Primorial
Numeral system-dependent numbers
Arithmetic functions
and dynamics
Digit sum
Digit product
Coding-related
Other
P-adic numbers-related
Digit-composition related
Digit-permutation related
Divisor-related
Other
Generated via a sieve
  • Mathematics portal