A prime number, also referred to as a prime, is defined as a natural number exceeding 1 that cannot be expressed as the product of two smaller natural numbers. Conversely, any natural number greater than 1 that is not prime is designated a composite number. For instance, the number 5 is prime because its only multiplicative decompositions, 1 × 5 or 5 × 1, necessarily include 5 itself. In contrast, 4 is classified as composite, as it can be formed by the product (2 × 2) where both factors are less than 4. Prime numbers hold a foundational position in number theory due to the fundamental theorem of arithmetic, which states that every natural number greater than 1 is either a prime number itself or possesses a unique factorization into a product of primes, irrespective of the order of the factors.
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways of writing it as a product, 1 × 5 or 5 × 1, involve 5 itself. However, 4 is composite because it is a product (2 × 2) in which both numbers are smaller than 4. Primes are central in number theory because of the fundamental theorem of arithmetic: every natural number greater than 1 is either a prime itself or can be factorized as a product of primes that is unique up to their order.
The characteristic of being prime is termed primality. A straightforward, albeit inefficient, technique for ascertaining the primality of a given number is trial division, which involves checking if is divisible by any integer from 2 up to . More rapid algorithms exist, such as the Miller–Rabin primality test, which offers speed at the cost of a minor probability of error, and the AKS primality test, which guarantees a correct result in polynomial time but is generally too slow for practical applications. Specialized and exceptionally fast methods are applicable to numbers with particular structures, exemplified by Mersenne numbers. As of October 2024, the largest identified prime number is a Mersenne prime, possessing 41,024,320 decimal digits.
The infinitude of prime numbers was established by Euclid approximately 300 BC. Currently, no straightforward formula exists to distinguish prime numbers from composite numbers. Nevertheless, the large-scale distribution of primes among natural numbers can be effectively modeled statistically. The seminal achievement in this area is the prime number theorem, proved in the late 19th century, which posits that the probability of a randomly selected large integer being prime is approximately inversely proportional to its number of digits, or equivalently, to its logarithm.
Numerous long-standing questions concerning prime numbers remain unresolved. Notable among these are Goldbach's conjecture, which proposes that every even integer exceeding 2 can be represented as the sum of two primes, and the twin prime conjecture, which postulates the existence of infinitely many prime pairs differing by two. These inquiries have stimulated the evolution of diverse subfields within number theory, emphasizing either the analytic or algebraic properties of numbers. Prime numbers are integral to various information technology protocols, including public-key cryptography, which leverages the computational challenge of factoring large integers into their prime components. Within abstract algebra, concepts analogous to prime numbers, exhibiting generalized prime-like behavior, encompass prime elements and prime ideals.
Definition and Illustrative Examples
A natural number (e.g., 1, 2, 3, 4, 5, 6) is designated a prime number (or simply a prime) if it exceeds 1 and cannot be expressed as the product of two natural numbers, both smaller than itself. Natural numbers greater than 1 that do not satisfy this criterion are termed composite numbers. Alternatively, a number is prime if discrete items cannot be partitioned into smaller, equal-sized groups containing more than one item, or if dots cannot be arranged into a rectangular grid with dimensions greater than one dot in both width and height. For instance, within the sequence of numbers from 1 to 6, 2, 3, and 5 are identified as prime numbers because they are not evenly divisible by any other integers (i.e., without a remainder). The number 1 is not considered prime, as it is explicitly excluded by the definition. Both 4 = 2 × 2 and 6 = 2 × 3 are examples of composite numbers.
The divisors of a natural number are defined as the natural numbers that divide without a remainder. Each natural number possesses at least two divisors: 1 and the number itself. A number is not prime if it has any divisor other than 1 and itself. Consequently, prime numbers are equivalently defined as integers possessing precisely two positive divisors. These two divisors are 1 and the number itself. Since 1 has only one divisor (itself), it is excluded from the set of prime numbers under this definition. Alternatively, a number is considered prime if it exceeds one and is not divisible without remainder by any integer in the sequence .
The initial 25 prime numbers, encompassing all primes below 100, are listed as follows:
- 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 (OEIS sequence A000040).
An even number
The collective set of all prime numbers is conventionally represented by the notation
History
Dating to approximately 1550 BC, the Rhind Mathematical Papyrus contains Egyptian fraction expansions that differentiate between prime and composite numbers. Nevertheless, the earliest extant documentation concerning the systematic study of prime numbers originates from ancient Greek mathematicians, who designated them as prōtos arithmòs (πρῶτος ἀριθμὸς). Euclid's seminal work, Elements (circa 300 BC), provides proof for the infinitude of primes, establishes the fundamental theorem of arithmetic, and outlines a method for constructing perfect numbers from Mersenne primes. The Sieve of Eratosthenes, another significant Greek innovation, remains a contemporary method for generating lists of primes.
Around 1000 AD, the Islamic mathematician Ibn al-Haytham (Alhazen) discovered Wilson's theorem, which characterizes prime numbers as those integers
In 1640, Pierre de Fermat articulated Fermat's Little Theorem, a proposition he presented without formal proof, which was subsequently substantiated by Leibniz and Euler. Fermat additionally conducted research into the primality of Fermat numbers, expressed as
Numerous mathematicians have developed primality tests for numbers exceeding the practical limits of trial division. Specialized primality tests, applicable to numbers of particular forms, encompass Pépin's test for Fermat numbers (1877), Proth's theorem (c. 1878), the Lucas–Lehmer primality test (originated 1856), and the generalized Lucas primality test.
Since 1951, the largest known prime numbers have been identified through the application of these tests on computers. The ongoing quest for increasingly large primes has attracted broader interest beyond academic mathematics, notably through initiatives like the Great Internet Mersenne Prime Search and other distributed computing projects. The perception that prime numbers held limited utility beyond pure mathematics was fundamentally altered in the 1970s with the advent of public-key cryptography and the RSA cryptosystem, both of which are fundamentally based on prime numbers.
The growing practical significance of computerized primality testing and factorization necessitated the development of advanced methods for processing large numbers of arbitrary form. Concurrently, the mathematical theory of prime numbers advanced significantly with the Green–Tao theorem (2004), demonstrating the existence of arbitrarily long arithmetic progressions of prime numbers, and Yitang Zhang's 2013 proof, establishing the existence of infinitely many prime gaps of bounded magnitude.
The Primality of One
In antiquity, most early Greek mathematicians did not classify 1 as a number, precluding any consideration of its primality. A minority of scholars within the Greek and later Roman traditions, such as Nicomachus, Iamblichus, Boethius, and Cassiodorus, further categorized prime numbers as a subset of odd numbers, consequently excluding
Classifying 1 as a prime number would necessitate cumbersome rephrasing of numerous mathematical statements concerning primes. For instance, the fundamental theorem of arithmetic would require reformulation to specify factorizations into primes greater than 1, as every number would otherwise possess multiple factorizations incorporating an arbitrary quantity of 1s. Likewise, the Sieve of Eratosthenes would malfunction if 1 were treated as a prime, as it would erroneously eliminate all multiples of 1 (i.e., all other integers), yielding only the number 1 itself. Furthermore, several technical properties characteristic of prime numbers do not apply to 1; for example, the formulas for Euler's totient function and the sum of divisors function differ for prime numbers compared to 1.
Elementary Properties
Unique Factorization
The representation of an integer as a product of prime numbers is termed its prime factorization. For instance:
50 = §1819§ × §2324§ × §2829§ = §4041§ × §46 47§ §49 50§ . {\displaystyle {\begin{aligned}50&=2\times 5\times 5\\&=2\times 5^{2}.\end{aligned}}}
The individual components within a product are referred to as prime factors. A particular prime factor can appear multiple times; for instance, in this illustration, the prime factor
The pivotal role of prime numbers in both number theory and broader mathematics originates from the fundamental theorem of arithmetic. This theorem posits that every integer exceeding one can be expressed as a product comprising one or more prime numbers. Furthermore, this factorization is uniquely determined, meaning that any two prime factorizations of an identical number will invariably contain the same multiplicity of each prime, notwithstanding potential variations in their sequence. Consequently, despite the existence of diverse integer factorization algorithms, all methods are guaranteed to yield an identical outcome. Thus, prime numbers are conceptualized as the foundational "basic building blocks" of the natural number system.
Several demonstrations of the uniqueness of prime factorizations rely on Euclid's lemma, which states: If
Infinitude
The existence of an infinite number of prime numbers is a fundamental concept in number theory. This implies that the sequence
§6 7§ , §1011§ , §1415§ , §1819§, §2223§, §2627§, . . . {\displaystyle 2,3,5,7,11,13,...}
of prime numbers is unending. This fundamental assertion is known as Euclid's theorem, named after the ancient Greek mathematician Euclid, who is credited with providing the earliest known proof. Numerous subsequent proofs for the infinitude of primes have been developed, notably an analytical proof by Euler, Goldbach's proof derived from Fermat numbers, Furstenberg's proof employing general topology, and Kummer's refined demonstration.
Euclid's proof demonstrates that any finite enumeration of prime numbers is inherently incomplete. The core principle involves multiplying all primes within a specified list and subsequently adding
N = §1011§+ p §1819§ ⋅ p §29 30§ ⋯ p n . {\displaystyle N=1+p_{1}\cdot p_{2}\cdots p_{n}.}
According to the fundamental theorem of arithmetic,
N = p §1415§ ′ ⋅ p §27 28§ ′ ⋯ p m ′ {\displaystyle N=p'_{1}\cdot p'_{2}\cdots p'_{m}}
where
Numbers derived by adding one to the product of the initial primes are designated as Euclid numbers. The first five of these numbers are prime, whereas the sixth,
§67§ + §16( 17§ ⋅ §2122§ ⋅ §2627§ ⋅ §3132§⋅ §3637§ ⋅ §4142§) = 30031 = 59 ⋅ 509 , {\displaystyle 1+{\big (}2\cdot 3\cdot 5\cdot 7\cdot 11\cdot 13{\big )}=30031=59\cdot 509,}
is a composite number.
Formulas for Prime Numbers
No efficient formula for generating prime numbers has been discovered. For instance, no non-constant polynomial, even one involving multiple variables, exclusively yields prime values. Nevertheless, various expressions exist that either encode all prime numbers or produce only prime numbers. One such formula, derived from Wilson's theorem, generates the number 2 multiple times while producing all other prime numbers precisely once. Additionally, a specific set of Diophantine equations, comprising nine variables and a single parameter, possesses the characteristic that the parameter is prime if and only if the corresponding system of equations has a solution within the set of natural numbers. This property allows for the derivation of a singular formula whose positive outputs are exclusively prime numbers.
Further instances of formulas capable of generating prime numbers are provided by Mills' theorem and a theorem attributed to Wright. These theorems posit the existence of real constants
⌊ A §14 15§ n ⌋ and ⌊ §34 35§ ⋯ §43 44§ §47 48§ μ ⌋ {\displaystyle \left\lfloor A^{3^{n}}\right\rfloor {\text{ and }}\left\lfloor 2^{\cdots ^{2^{2^{\mu }}}}\right\rfloor }
These expressions yield prime numbers for any natural number
Unresolved Questions
Numerous conjectures concerning prime numbers have been proposed. Despite their often elementary formulations, many of these conjectures have resisted proof for decades; for instance, all four of Landau's problems, posed in 1912, remain unresolved. A prominent example is Goldbach's conjecture, which postulates that every even integer
A distinct category of mathematical inquiry pertains to prime gaps, which are defined as the differences observed between successive prime numbers. The existence of prime gaps of arbitrary magnitude is demonstrable by observing that the sequence
Analytic properties
Analytic number theory investigates number theory utilizing the framework of continuous functions, limits, infinite series, and associated mathematical concepts pertaining to infinity and infinitesimals.
The field of study originated with Leonhard Euler, whose initial significant contribution was the resolution of the Basel problem. This problem sought the value of the infinite series
The macroscopic distribution of prime numbers, including the quantity of primes below a specified large threshold, is characterized by the prime number theorem. However, an efficient formula for determining the
p ( n ) = a + b n {\displaystyle p(n)=a+bn}
where integers
Analytical Demonstration of Euclid's Theorem
Euler's proof, establishing the infinitude of prime numbers, involves an examination of the sums of their reciprocals.
§89§ §10 11§ + §1819§ §20 21§ + §2829§ §30 31§ + §3839§ §40 41§ + ⋯ + §5354§ p . {\displaystyle {\frac {1}{2}}+{\frac {1}{3}}+{\frac {1}{5}}+{\frac {1}{7}}+\cdots +{\frac {1}{p}}.}
Euler demonstrated that for any arbitrary real number
§89§ §1112§ §14 15§ + §2425§ §27 28§ §30 31§ + §4041§ §43 44§ §46 47§ + ⋯ + §6162§ n §67 68§ {\displaystyle {\frac {1}{1^{2}}}+{\frac {1}{2^{2}}}+{\frac {1}{3^{2}}}+\cdots +{\frac {1}{n^{2}}}}
does not diverge to infinity as
( §1213§ §14 15§ + §2223§ §24 25§ ) + ( §4041§ §42 43§ + §5051§ §52 53§ ) + ( §6869§ §70 71§ + §7879§ §8081§ ) + ⋯ , {\displaystyle \left({{\frac {1}{3}}+{\frac {1}{5}}}\right)+\left({{\frac {1}{5}}+{\frac {1}{7}}}\right)+\left({{\frac {1}{11}}+{\frac {1}{13}}}\right)+\cdots ,}
is finite. Brun's theorem establishes that Euler's method cannot be applied to resolve the twin prime conjecture, which posits the existence of an infinite number of twin primes.
The Enumeration of Primes Up to a Specified Limit
The prime-counting function, denoted as
π ( n ) ∼ n log n , {\displaystyle \pi (n)\sim {\frac {n}{\log n}},}
This signifies that the ratio of
π ( n ) ∼ Li ( n ) = ∫ §36 37§ n d t log t . {\displaystyle \pi (n)\sim \operatorname {Li} (n)=\int _{2}^{n}{\frac {dt}{\log t}}.}
Arithmetic Progressions
An arithmetic progression constitutes a finite or infinite series of numbers where the difference between successive terms remains constant. This consistent difference is termed the modulus of the progression. For instance,
§6 7§ , 12 , 21 , 30 , 39 , . . . , {\displaystyle 3,12,21,30,39,...,}
This sequence represents an infinite arithmetic progression with a modulus of 9. Within an arithmetic progression, all terms yield an identical remainder upon division by the modulus; in this specific instance, the remainder is 3. Since both the modulus (9) and the remainder (3) are divisible by 3, every element within this sequence is also a multiple of 3. Consequently, this progression includes only a single prime number, which is 3. More broadly, an infinite progression of the form
a , a + q , a + §2223§ q , a + §3233§ q , … {\displaystyle a,a+q,a+2q,a+3q,\dots }
An arithmetic progression can contain more than one prime number exclusively when its remainder
The Green–Tao theorem demonstrates the existence of finite arithmetic progressions of arbitrary length composed entirely of prime numbers.
Prime Values Generated by Quadratic Polynomials
Euler observed that the mathematical function
n §10 11§ − n + 41 {\displaystyle n^{2}-n+41}
This function generates prime numbers for
The Ulam spiral organizes natural numbers within a two-dimensional grid, forming concentric squares that spiral outward from the origin, with prime numbers distinctly marked. A visual inspection reveals that primes tend to aggregate along specific diagonals rather than others, implying that certain quadratic polynomials generate prime values with greater frequency.
The Zeta Function and the Riemann Hypothesis
The Riemann hypothesis, formulated in 1859 and recognized as one of the Millennium Prize Problems, represents a prominent unsolved mathematical enigma. It seeks to determine the precise locations of the zeros of the Riemann zeta function, denoted as
ζ ( s ) = ∑ n = §2627§∞ §3638§ n s = ∏ §6467§§6870§p prime − p −s . {\displaystyle \zeta (s)=\sum _{n=1}^{\infty }{\frac {1}{n^{s}}}=\prod _{p{\text{ prime}}}{\frac {1}{1-p^{-s}}}.}
Euler's discovery of this sum-product equality is known as an Euler product. Derivable from the fundamental theorem of arithmetic, the Euler product elucidates the profound relationship between the zeta function and prime numbers. This principle also furnishes an alternative proof for the infinitude of prime numbers: assuming a finite number of primes, the sum-product equality would hold at
The Riemann hypothesis posits that all zeros of the zeta function are either negative even integers or complex numbers possessing a real part of 1/2. The initial demonstration of the prime number theorem relied on a weaker version of this hypothesis, specifically that no zeros exist with a real part of 1; however, subsequent, more elementary proofs have since emerged. Riemann's explicit formula allows the prime-counting function to be articulated as a sum, where each constituent term originates from a zero of the zeta function. The primary component of this summation is the logarithmic integral, with the residual terms inducing oscillations around this main component. Consequently, these zeros govern the regularity of prime number distribution. Should the Riemann hypothesis prove correct, these fluctuations would be minimal, and the asymptotic distribution of primes, as established by the prime number theorem, would extend to significantly shorter intervals (approximately the square root of
Abstract algebra
Modular arithmetic and finite fields
From the perspective of abstract algebra, the capacity for division implies that modular arithmetic with a prime modulus constitutes a field, or more precisely, a finite field. In contrast, other moduli establish only a ring, not a field.
Modular arithmetic provides a framework for articulating various theorems concerning prime numbers. For example, Fermat's Little Theorem asserts that if
∑ a = §1516§p − §2425§a p − §3738§≡ ( p − §5152§) ⋅ §5859§≡ − §6667§( mod p ) , {\displaystyle \sum _{a=1}^{p-1}a^{p-1}\equiv (p-1)\cdot 1\equiv -1{\pmod {p}},}
This equation holds true exclusively when
p-adic Numbers
The
The conceptual framework encompassing order, absolute value, and their derived complete fields can be extended to algebraic number fields. This generalization involves valuations, which are specific mappings from the multiplicative group of a field to a totally ordered additive group (also termed orders); absolute values, defined as multiplicative mappings from the field to the real numbers (also known as norms); and places, which represent extensions to complete fields where the original field forms a dense subset (also referred to as completions). For instance, the extension from rational numbers to real numbers exemplifies a place where the distance between numbers is determined by the standard absolute value of their difference. While the logarithm of the absolute value could serve as a corresponding mapping to an additive group, it does not fully satisfy the criteria for a valuation. Ostrowski's theorem asserts that, under a natural equivalence relation, the real numbers and
Prime Elements within a Ring
A commutative ring constitutes an algebraic structure characterized by defined operations of addition, subtraction, and multiplication. The set of integers forms a ring, and the concept of prime numbers within the integers has been extended to general rings through two distinct classifications: prime elements and irreducible elements. An element
{ … , − §1617§ 24§, − §23, − §3031§ , − §3738§ , − §4445§ , §4849§ , §5253§ , §5657§ , §6061§, §6465§ , … } . {\displaystyle \{\dots ,-11,-7,-5,-3,-2,2,3,5,7,11,\dots \}\,.}
Within an arbitrary ring, every prime element is necessarily irreducible. However, the converse of this statement is not universally true, though it does hold specifically for unique factorization domains.
The fundamental theorem of arithmetic is inherently valid within unique factorization domains. A notable instance of such a domain is the Gaussian integers, denoted as
Prime ideals
Not every ring constitutes a unique factorization domain. For example, the ring of numbers
The spectrum of a ring defines a geometric space where its points correspond to the prime ideals of that ring. This concept also proves beneficial in arithmetic geometry, where numerous principles are shared between geometry and number theory. For instance, the factorization or ramification of prime ideals upon extension to a larger field, a fundamental challenge in algebraic number theory, exhibits parallels with geometric ramification. Such concepts can even aid in purely number-theoretic inquiries focused exclusively on integers. For example, the application of prime ideals within the ring of integers of quadratic number fields facilitates the proof of quadratic reciprocity, a theorem addressing the existence of square roots modulo integer prime numbers. Initial efforts to establish Fermat's Last Theorem prompted Kummer to introduce regular primes, which are integer prime numbers associated with the breakdown of unique factorization in cyclotomic integers. Chebotarev's density theorem addresses the inquiry into the number of integer prime numbers that factor into multiple prime ideals within an algebraic number field; when applied to cyclotomic integers, this theorem encompasses Dirichlet's theorem on primes in arithmetic progressions as a specific instance.
Group theory
Within the theory of finite groups, the Sylow theorems establish that if a power of a prime number, specifically
Computational methods
Historically, number theory, and specifically the study of prime numbers, was widely regarded as the quintessential example of pure mathematics, possessing no practical applications beyond the use of prime-numbered gear teeth to ensure uniform wear distribution. Notably, number theorists like the British mathematician G. H. Hardy took pride in conducting research devoid of any military relevance.
This perception of number theory's inherent purity was fundamentally altered in the 1970s with the public disclosure that prime numbers could form the foundational basis for developing public-key cryptography algorithms. These practical applications have spurred extensive research into algorithms for computations involving prime numbers, particularly focusing on primality testing—methods designed to ascertain whether a given number is prime. The most rudimentary primality testing procedure, trial division, proves inefficient for large numbers due to its computational slowness. While one category of contemporary primality tests is suitable for arbitrary numbers, more computationally efficient tests exist for numbers exhibiting specific characteristics. The majority of primality tests merely indicate whether their input argument is prime or composite. Algorithms that additionally furnish a prime factor (or all prime factors) of composite inputs are termed factorization algorithms. Furthermore, prime numbers find utility in computing for applications such as checksums, hash tables, and pseudorandom number generators.
Trial division
The fundamental approach for ascertaining the primality of a specified integer
While conceptually straightforward, this method becomes unfeasible for assessing the primality of substantial integers, as the requisite number of tests escalates exponentially with the number of digits in the integer. Nevertheless, trial division retains utility, often employed with a divisor limit smaller than the square root, to rapidly identify composite numbers possessing minor factors, prior to the application of more sophisticated algorithms to integers that successfully pass this initial screening.
Sieve Methods
Prior to the advent of computers, mathematical tables enumerating prime numbers or their factorizations up to a specified threshold were routinely published. The most ancient recognized algorithm for compiling a list of prime numbers is designated the Sieve of Eratosthenes. An optimized variant of this method has been developed. A distinct sieving technique, offering superior asymptotic efficiency for this particular problem, is the Sieve of Atkin. Within advanced mathematical contexts, sieve theory extends analogous methodologies to address a broader spectrum of problems.
Distinction Between Primality Testing and Primality Proving
Modern primality tests, particularly those designed for speed, often employ probabilistic (Monte Carlo) algorithms to determine if an arbitrary number
In contrast, certain alternative algorithms offer a guarantee of absolute correctness in their determinations: prime numbers are unfailingly identified as prime, and composite numbers are consistently recognized as composite. Trial division exemplifies such a method. Algorithms that produce verifiably correct outputs encompass both deterministic (non-randomized) approaches, like the AKS primality test, and randomized Las Vegas algorithms. In the latter, random selections made during execution do not compromise the accuracy of the final result, as observed in specific implementations of elliptic curve primality proving. Upon determining a number's primality, the elliptic curve method generates a primality certificate, which can be rapidly validated. While the elliptic curve primality test is empirically the most efficient among guaranteed-correct methods, its runtime analysis relies on heuristic reasoning rather than formal mathematical proofs. Conversely, the AKS primality test possesses a mathematically established time complexity, yet it exhibits slower practical performance compared to elliptic curve primality proving. These techniques facilitate the generation of large random prime numbers by iteratively producing and testing random integers until a prime is identified. In this process, an initial, faster probabilistic test can efficiently filter out the majority of composite numbers, reserving the more computationally intensive, guaranteed-correct algorithms for final verification of the remaining candidates.
The subsequent table enumerates several of these tests. Their operational duration is expressed in relation to
Specialized Algorithms and the Largest Identified Prime Numbers
Beyond the general primality tests applicable to any natural number, certain numbers possessing a specific structure can undergo primality assessment with greater efficiency. For instance, the Lucas–Lehmer primality test can deterministically ascertain the primality of a Mersenne number (defined as one less than a power of two) within the computational timeframe equivalent to a single iteration of the Miller–Rabin test. Consequently, since 1992 (up to October 2024), the largest known prime has consistently been a Mersenne prime. A prevailing conjecture posits the existence of an infinite number of Mersenne primes.
The subsequent table presents the largest identified prime numbers across different classifications. Several of these primes have been discovered through distributed computing initiatives. In 2009, the Great Internet Mersenne Prime Search project received a US$100,000 award for being the first to identify a prime number comprising at least 10 million digits. The Electronic Frontier Foundation additionally provides incentives of $150,000 and $250,000 for the discovery of primes with a minimum of 100 million digits and 1 billion digits, respectively.
Integer Factorization
For a given composite integer
Shor's algorithm offers the capability to factor any integer within a polynomial number of steps when executed on a quantum computer. Nevertheless, contemporary technological limitations restrict the application of this algorithm to only very small numbers. As of October 2012, the maximum integer successfully factored by a quantum computer employing Shor's algorithm was 21.
Additional Computational Applications
Numerous public-key cryptographic algorithms, including RSA and the Diffie–Hellman key exchange, fundamentally rely on large prime numbers, with 2048-bit primes being a prevalent standard. RSA's security paradigm is predicated on the computational asymmetry between multiplying two large prime numbers,
Prime numbers find extensive application in the design of hash tables. For example, the foundational universal hashing scheme proposed by Carter and Wegman employed random linear functions computed modulo large prime numbers to generate hash functions. Subsequently, Carter and Wegman extended this methodology to achieve
The mathematical properties of prime numbers underpin several checksum algorithms. For example, the checksums incorporated into International Standard Book Numbers (ISBNs) are derived by computing the remainder of the number when divided by 11, which is a prime. The primality of 11 enables this method to effectively identify both single-digit errors and transpositions of adjacent digits. Furthermore, the Adler-32 checksum algorithm employs arithmetic modulo 65521, which represents the largest prime number smaller than
Other Applications
While central to number theory, prime numbers also possess significant applications across diverse mathematical domains, including abstract algebra and elementary geometry. For instance, configurations exist where a prime number of points can be arranged on a two-dimensional grid such that no three points are collinear, or alternatively, such that any triangle formed by three of these points encloses a substantial area. A further illustration is Eisenstein's criterion, which provides a test for polynomial irreducibility by examining the divisibility of its coefficients by a prime number and its square.
The fundamental nature of prime numbers has led to their generalization in various mathematical disciplines. Typically, the term "prime" denotes minimality or indecomposability within a specific mathematical context. For instance, the prime field associated with a given field represents its minimal subfield encompassing both 0 and 1. This prime field is either the field of rational numbers or a finite field characterized by a prime number of elements, which explains its nomenclature. Furthermore, the term "prime" frequently implies a secondary meaning: the capacity for any object to be uniquely decomposed into its fundamental prime constituents. In knot theory, for example, a prime knot is defined as an indecomposable knot, meaning it cannot be expressed as the connected sum of two non-trivial knots. Every knot possesses a unique representation as a connected sum of prime knots. The prime decomposition of 3-manifolds serves as another illustration of this principle.
Beyond their applications in mathematics and computing, prime numbers exhibit potential connections to quantum mechanics and have been employed metaphorically in artistic and literary contexts. Additionally, they have found utility in evolutionary biology for elucidating the life cycles of cicadas.
Constructible Polygons and Polygon Partitions
Fermat primes are defined as prime numbers conforming to the structure:
F k = §17 18§ §21 22§ k + §3233§, {\displaystyle F_{k}=2^{2^{k}}+1,}
where
Any convex polygon can be partitioned into
Quantum Mechanics
Since the 1970s, commencing with the research conducted by Hugh Montgomery and Freeman Dyson, mathematicians and physicists have posited a correlation between the zeros of the Riemann zeta function and the energy levels observed in quantum systems. Furthermore, prime numbers hold considerable importance within quantum information science, owing to their role in mathematical constructs like mutually unbiased bases and symmetric informationally complete positive-operator-valued measures.
Biology
The genus of cicadas, Magicicada, employs an evolutionary strategy that incorporates prime numbers. These insects spend the majority of their existence as subterranean larvae, only to pupate and emerge from their burrows after precisely 7, 13, or 17 years. Following emergence, they engage in flight, reproduction, and subsequently perish within a few weeks. Biologists postulate that these prime-numbered breeding cycle durations have evolved as a mechanism to preclude predator synchronization with their life cycles. Conversely, the multi-year intervals between flowering events in bamboo species are conjectured to be smooth numbers, characterized by factorizations containing solely small prime numbers.
Arts and Literature
Prime numbers have exerted a notable influence on numerous artists and literary figures. The French composer Olivier Messiaen, for instance, utilized prime numbers to construct ametrical music, drawing inspiration from "natural phenomena." In compositions such as La Nativité du Seigneur (1935) and Quatre études de rythme (1949–1950), Messiaen concurrently deploys musical motifs whose durations correspond to distinct prime numbers, thereby generating unpredictable rhythmic patterns. Specifically, the primes 41, 43, 47, and 53 are evident in the third étude, titled "Neumes rythmiques." Messiaen himself articulated that this compositional approach was "inspired by the movements of nature, movements of free and unequal durations."
In his science fiction novel Contact, the scientist Carl Sagan proposed that prime factorization could serve as a method for establishing two-dimensional image planes during communication with extraterrestrial intelligence, an concept he initially formulated informally with American astronomer Frank Drake in 1975. Mark Haddon's novel The Curious Incident of the Dog in the Night-Time features a narrator who structures the narrative sections using consecutive prime numbers, effectively conveying the psychological state of the protagonist, a mathematically talented adolescent with Asperger syndrome. Furthermore, prime numbers function as a metaphor for loneliness and isolation in Paolo Giordano's novel The Solitude of Prime Numbers, where they are depicted as "outsiders" within the set of integers.
References
"Prime number." Encyclopedia of Mathematics. EMS Press, 2001 [1994].
- "Prime number". Encyclopedia of Mathematics. EMS Press. 2001 [1994].In Our Time, BBC.
- "Teacher package: Prime numbers." Plus, December 1, 2008, produced by the Millennium Mathematics Project at the University of Cambridge.
- Prime factors calculator can factorize any positive integer up to 20 digits.
- Huge database of prime numbers.
- Prime Numbers up to 1 trillion. Archived 2021-02-27 at the Wayback Machine.