Mersenne prime
   HOME

TheInfoList



OR:

In
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, a Mersenne prime is a
prime number A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), 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 ...
that is one less than a
power of two A power of two is a number of the form where is an integer, that is, the result of exponentiation with number two as the base and integer  as the exponent. In a context where only integers are considered, is restricted to non-negat ...
. That is, it is a prime number of the form for some
integer An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the languag ...
. They are named after
Marin Mersenne Marin Mersenne, OM (also known as Marinus Mersennus or ''le Père'' Mersenne; ; 8 September 1588 – 1 September 1648) was a French polymath whose works touched a wide variety of fields. He is perhaps best known today among mathematicians for ...
, a French Minim friar, who studied them in the early 17th century. If is a
composite number A composite number is a positive integer that can be formed by multiplying two smaller positive integers. Equivalently, it is a positive integer that has at least one divisor In mathematics, a divisor of an integer n, also called a factor ...
then so is . Therefore, an equivalent definition of the Mersenne primes is that they are the prime numbers of the form for some prime . The exponents which give Mersenne primes are 2, 3, 5, 7, 13, 17, 19, 31, ... and the resulting Mersenne primes are 3, 7, 31, 127, 8191, 131071, 524287,
2147483647 The number 2,147,483,647 is the eighth Mersenne prime, equal to 231 − 1. It is one of only four known double Mersenne primes. The primality of this number was proven by Leonhard Euler, who reported the proof in a letter to Dani ...
, ... . Numbers of the form without the primality requirement may be called Mersenne numbers. Sometimes, however, Mersenne numbers are defined to have the additional requirement that be prime. The smallest composite Mersenne number with prime exponent ''n'' is . Mersenne primes were studied in antiquity because of their close connection to perfect numbers: the Euclid–Euler theorem asserts a one-to-one correspondence between even perfect numbers and Mersenne primes. Many of the largest known primes are Mersenne primes because Mersenne numbers are easier to check for primality. , 51 Mersenne primes are known. The largest known prime number, , is a Mersenne prime. Since 1997, all newly found Mersenne primes have been discovered by the
Great Internet Mersenne Prime Search The Great Internet Mersenne Prime Search (GIMPS) is a collaborative project of volunteers who use freely available software to search for Mersenne prime numbers. GIMPS was founded in 1996 by George Woltman, who also wrote the Prime95 client a ...
, a
distributed computing A distributed system is a system whose components are located on different networked computers, which communicate and coordinate their actions by passing messages to one another from any system. Distributed computing is a field of computer sci ...
project. In December 2020, a major milestone in the project was passed after all exponents below 100 million were checked at least once.


About Mersenne primes

Many fundamental questions about Mersenne primes remain unresolved. It is not even known whether the set of Mersenne primes is finite or infinite. The
Lenstra–Pomerance–Wagstaff conjecture In mathematics, the Mersenne conjectures concern the characterization of prime numbers of a form called Mersenne primes, meaning prime numbers that are a power of two minus one. Original Mersenne conjecture The original, called Mersenne's conjectu ...
asserts that there are infinitely many Mersenne primes and predicts their order of growth. It is also not known whether infinitely many Mersenne numbers with prime exponents are
composite Composite or compositing may refer to: Materials * Composite material, a material that is made from several different substances ** Metal matrix composite, composed of metal and other parts ** Cermet, a composite of ceramic and metallic materials ...
, although this would follow from widely believed conjectures about prime numbers, for example, the infinitude of
Sophie Germain prime In number theory, a prime number ''p'' is a if 2''p'' + 1 is also prime. The number 2''p'' + 1 associated with a Sophie Germain prime is called a . For example, 11 is a Sophie Germain prime and 2 × 11 +  ...
s
congruent Congruence may refer to: Mathematics * Congruence (geometry), being the same size and shape * Congruence or congruence relation, in abstract algebra, an equivalence relation on an algebraic structure that is compatible with the structure * In mod ...
to 3 ( mod 4). For these primes , (which is also prime) will divide , for example, , , , , , , , and . Since for these primes , is congruent to 7 mod 8, so 2 is a
quadratic residue In number theory, an integer ''q'' is called a quadratic residue modulo ''n'' if it is congruent to a perfect square modulo ''n''; i.e., if there exists an integer ''x'' such that: :x^2\equiv q \pmod. Otherwise, ''q'' is called a quadratic no ...
mod , and the
multiplicative order In number theory, given a positive integer ''n'' and an integer ''a'' coprime to ''n'', the multiplicative order of ''a'' modulo ''n'' is the smallest positive integer ''k'' such that a^k\ \equiv\ 1 \pmod n. In other words, the multiplicative ord ...
of 2 mod must divide \frac = p. Since is a prime, it must be or 1. However, it cannot be 1 since \Phi_1(2) = 1 and 1 has no
prime factor 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 ...
s, so it must be . Hence, divides \Phi_p(2) = 2^p-1 and 2^p-1 = M_p cannot be prime. The first four Mersenne primes are , , and and because the first Mersenne prime starts at , all Mersenne primes are congruent to 3 (mod 4). Other than and , all other Mersenne numbers are also congruent to 3 (mod 4). Consequently, in the
prime factorization In number theory, integer factorization is the decomposition of a composite number into a product of smaller integers. If these factors are further restricted to prime numbers, the process is called prime factorization. When the numbers are s ...
of a Mersenne number (  ) there must be at least one prime factor congruent to 3 (mod 4). A basic
theorem In mathematics, a theorem is a statement that has been proved, or can be proved. The ''proof'' of a theorem is a logical argument that uses the inference rules of a deductive system to establish that the theorem is a logical consequence of t ...
about Mersenne numbers states that if is prime, then the exponent must also be prime. This follows from the identity \begin 2^-1 &=(2^a-1)\cdot \left(1+2^a+2^+2^+\cdots+2^\right)\\ &=(2^b-1)\cdot \left(1+2^b+2^+2^+\cdots+2^\right). \end This rules out primality for Mersenne numbers with a composite exponent, such as . Though the above examples might suggest that is prime for all primes , this is not the case, and the smallest counterexample is the Mersenne number : . The evidence at hand suggests that a randomly selected Mersenne number is much more likely to be prime than an arbitrary randomly selected odd integer of similar size. Nonetheless, prime values of appear to grow increasingly sparse as increases. For example, eight of the first 11 primes give rise to a Mersenne prime (the correct terms on Mersenne's original list), while is prime for only 43 of the first two million prime numbers (up to 32,452,843). The current lack of any simple test to determine whether a given Mersenne number is prime makes the search for Mersenne primes a difficult task, since Mersenne numbers grow very rapidly. The
Lucas–Lehmer primality test In mathematics, the Lucas–Lehmer test (LLT) is a primality test for Mersenne numbers. The test was originally developed by Édouard Lucas in 1876 and subsequently improved by Derrick Henry Lehmer in the 1930s. The test The Lucas–Lehmer te ...
(LLT) is an efficient
primality test A primality test is an algorithm for determining whether an input number is prime. Among other fields of mathematics, it is used for cryptography. Unlike integer factorization, primality tests do not generally give prime factors, only stating whet ...
that greatly aids this task, making it much easier to test the primality of Mersenne numbers than that of most other numbers of the same size. The search for the largest known prime has somewhat of a
cult following A cult following refers to a group of fans who are highly dedicated to some person, idea, object, movement, or work, often an artist, in particular a performing artist, or an artwork in some medium. The lattermost is often called a cult classic. ...
. Consequently, a large amount of computer power has been expended searching for new Mersenne primes, much of which is now done using
distributed computing A distributed system is a system whose components are located on different networked computers, which communicate and coordinate their actions by passing messages to one another from any system. Distributed computing is a field of computer sci ...
. Arithmetic modulo a Mersenne number is particularly efficient on a binary computer, making them popular choices when a prime modulus is desired, such as the
Park–Miller random number generator The Lehmer random number generator (named after D. H. Lehmer), sometimes also referred to as the Park–Miller random number generator (after Stephen K. Park and Keith W. Miller), is a type of linear congruential generator (LCG) that opera ...
. To find a primitive polynomial of Mersenne number order requires knowing the factorization of that number, so Mersenne primes allow one to find primitive polynomials of very high order. Such primitive trinomials are used in
pseudorandom number generator A pseudorandom number generator (PRNG), also known as a deterministic random bit generator (DRBG), is an algorithm for generating a sequence of numbers whose properties approximate the properties of sequences of random numbers. The PRNG-generate ...
s with very large periods such as the
Mersenne twister The Mersenne Twister is a general-purpose pseudorandom number generator (PRNG) developed in 1997 by and . Its name derives from the fact that its period length is chosen to be a Mersenne prime. The Mersenne Twister was designed specifically to re ...
, generalized shift register and
Lagged Fibonacci generator A Lagged Fibonacci generator (LFG or sometimes LFib) is an example of a pseudorandom number generator. This class of random number generator is aimed at being an improvement on the 'standard' linear congruential generator. These are based on a gene ...
s.


Perfect numbers

Mersenne primes are closely connected to
perfect number In number theory, a perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. For instance, 6 has divisors 1, 2 and 3 (excluding itself), and 1 + 2 + 3 = 6, so 6 is a perfect number. ...
s. In the 4th century BC,
Euclid Euclid (; grc-gre, Εὐκλείδης; BC) was an ancient Greek mathematician active as a geometer and logician. Considered the "father of geometry", he is chiefly known for the '' Elements'' treatise, which established the foundations of ...
proved that if is prime, then ) is a perfect number. In the 18th century,
Leonhard Euler Leonhard Euler ( , ; 15 April 170718 September 1783) was a Swiss mathematician, physicist, astronomer, geographer, logician and engineer who founded the studies of graph theory and topology and made pioneering and influential discoveries ...
proved that, conversely, all even perfect numbers have this form. This is known as the Euclid–Euler theorem. It is unknown whether there are any
odd perfect number In number theory, a perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. For instance, 6 has divisors 1, 2 and 3 (excluding itself), and 1 + 2 + 3 = 6, so 6 is a perfect number. Th ...
s.


History

Mersenne primes take their name from the 17th-century
French French (french: français(e), link=no) may refer to: * Something of, from, or related to France ** French language, which originated in France, and its various dialects and accents ** French people, a nation and ethnic group identified with Franc ...
scholar
Marin Mersenne Marin Mersenne, OM (also known as Marinus Mersennus or ''le Père'' Mersenne; ; 8 September 1588 – 1 September 1648) was a French polymath whose works touched a wide variety of fields. He is perhaps best known today among mathematicians for ...
, who compiled what was supposed to be a list of Mersenne primes with exponents up to 257. The exponents listed by Mersenne were as follows: ::2, 3, 5, 7, 13, 17, 19, 31, 67, 127, 257. His list replicated the known primes of his time with exponents up to 19. His next entry, 31, was correct, but the list then became largely incorrect, as Mersenne mistakenly included and (which are composite) and omitted , , and (which are prime). Mersenne gave little indication of how he came up with his list.
Édouard Lucas __NOTOC__ François Édouard Anatole Lucas (; 4 April 1842 – 3 October 1891) was a French mathematician. Lucas is known for his study of the Fibonacci sequence. The related Lucas sequences and Lucas numbers are named after him. Biography Lucas ...
proved in 1876 that is indeed prime, as Mersenne claimed. This was the largest known prime number for 75 years until 1951, when Ferrier found a larger prime, (2^+1)/17, using a desk calculating machine. was determined to be prime in 1883 by
Ivan Mikheevich Pervushin Ivan Mikheevich Pervushin (russian: Иван Михеевич Первушин, sometimes transliterated as Pervusin or Pervouchine) (—) was a Russian clergyman and mathematician of the second half of the 19th century, known for his achievements ...
, though Mersenne claimed it was composite, and for this reason it is sometimes called Pervushin's number. This was the second-largest known prime number, and it remained so until 1911. Lucas had shown another error in Mersenne's list in 1876. Without finding a factor, Lucas demonstrated that is actually composite. No factor was found until a famous talk by
Frank Nelson Cole Frank Nelson Cole (September 20, 1861 – May 26, 1926) was an American mathematician. Life and works Cole was born in Ashland, Massachusetts. When he was very young, the family moved to Marlborough, Massachusetts where he attended school a ...
in 1903. Without speaking a word, he went to a blackboard and raised 2 to the 67th power, then subtracted one, resulting in the number . On the other side of the board, he multiplied and got the same number, then returned to his seat (to applause) without speaking. He later said that the result had taken him "three years of Sundays" to find. A correct list of all Mersenne primes in this number range was completed and rigorously verified only about three centuries after Mersenne published his list.


Searching for Mersenne primes

Fast algorithms for finding Mersenne primes are available, and , the eight largest known prime numbers are Mersenne primes. The first four Mersenne primes , , and were known in antiquity. The fifth, , was discovered anonymously before 1461; the next two ( and ) were found by
Pietro Cataldi Pietro Antonio Cataldi (15 April 1548, Bologna – 11 February 1626, Bologna) was an Italian mathematician. A citizen of Bologna, he taught mathematics and astronomy and also worked on military problems. His work included the development of conti ...
in 1588. After nearly two centuries, was verified to be prime by
Leonhard Euler Leonhard Euler ( , ; 15 April 170718 September 1783) was a Swiss mathematician, physicist, astronomer, geographer, logician and engineer who founded the studies of graph theory and topology and made pioneering and influential discoveries ...
in 1772. The next (in historical, not numerical order) was , found by
Édouard Lucas __NOTOC__ François Édouard Anatole Lucas (; 4 April 1842 – 3 October 1891) was a French mathematician. Lucas is known for his study of the Fibonacci sequence. The related Lucas sequences and Lucas numbers are named after him. Biography Lucas ...
in 1876, then by
Ivan Mikheevich Pervushin Ivan Mikheevich Pervushin (russian: Иван Михеевич Первушин, sometimes transliterated as Pervusin or Pervouchine) (—) was a Russian clergyman and mathematician of the second half of the 19th century, known for his achievements ...
in 1883. Two more ( and ) were found early in the 20th century, by
R. E. Powers Ralph Ernest Powers (April 27, 1875 – January 31, 1952) was an American amateur mathematician who worked on prime numbers. He is credited with discovering the Mersenne primes and , in 1911 and 1914 respectively. In 1934 he verified that the Mers ...
in 1911 and 1914, respectively. The most efficient method presently known for testing the primality of Mersenne numbers is the
Lucas–Lehmer primality test In mathematics, the Lucas–Lehmer test (LLT) is a primality test for Mersenne numbers. The test was originally developed by Édouard Lucas in 1876 and subsequently improved by Derrick Henry Lehmer in the 1930s. The test The Lucas–Lehmer te ...
. Specifically, it can be shown that for prime , is prime
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (shortened as "iff") is a biconditional logical connective between statements, where either both statements are true or both are false. The connective is bic ...
divides , where and for . During the era of manual calculation, all the exponents up to and including 257 were tested with the Lucas–Lehmer test and found to be composite. A notable contribution was made by retired Yale physics professor Horace Scudder Uhler, who did the calculations for exponents 157, 167, 193, 199, 227, and 229. Unfortunately for those investigators, the interval they were testing contains the largest known relative gap between Mersenne primes: the next Mersenne prime exponent, 521, would turn out to be more than four times as large as the previous record of 127. The search for Mersenne primes was revolutionized by the introduction of the electronic digital computer.
Alan Turing Alan Mathison Turing (; 23 June 1912 – 7 June 1954) was an English mathematician, computer scientist, logician, cryptanalyst, philosopher, and theoretical biologist. Turing was highly influential in the development of theoretical ...
searched for them on the
Manchester Mark 1 The Manchester Mark 1 was one of the earliest stored-program computers, developed at the Victoria University of Manchester, England from the Manchester Baby (operational in June 1948). Work began in August 1948, and the first version was oper ...
in 1949, but the first successful identification of a Mersenne prime, , by this means was achieved at 10:00 pm on January 30, 1952, using the U.S.
National Bureau of Standards The National Institute of Standards and Technology (NIST) is an agency of the United States Department of Commerce whose mission is to promote American innovation and industrial competitiveness. NIST's activities are organized into physical sci ...
Western Automatic Computer (SWAC) at the Institute for Numerical Analysis at the
University of California, Los Angeles The University of California, Los Angeles (UCLA) is a public land-grant research university in Los Angeles, California. UCLA's academic roots were established in 1881 as a teachers college then known as the southern branch of the Californ ...
, under the direction of
D. H. Lehmer Derrick Henry "Dick" Lehmer (February 23, 1905 – May 22, 1991), almost always cited as D.H. Lehmer, was an American mathematician significant to the development of computational number theory. Lehmer refined Édouard Lucas' work in the 1930s and ...
, with a computer search program written and run by Prof.
R. M. Robinson Raphael Mitchel Robinson (November 2, 1911 – January 27, 1995) was an American mathematician. Born in National City, California, Robinson was the youngest of four children of a lawyer and a teacher. He was awarded from the University of Cali ...
. It was the first Mersenne prime to be identified in thirty-eight years; the next one, , was found by the computer a little less than two hours later. Three more — , , and  — were found by the same program in the next several months. was the first prime discovered with more than 1000 digits, was the first with more than 10,000, and was the first with more than a million. In general, the number of digits in the decimal representation of equals , where denotes the
floor function In mathematics and computer science, the floor function is the function that takes as input a real number , and gives as output the greatest integer less than or equal to , denoted or . Similarly, the ceiling function maps to the least int ...
(or equivalently ). In September 2008, mathematicians at
UCLA The University of California, Los Angeles (UCLA) is a public land-grant research university in Los Angeles, California. UCLA's academic roots were established in 1881 as a teachers college then known as the southern branch of the California ...
participating in the Great Internet Mersenne Prime Search (GIMPS) won part of a $100,000 prize from the
Electronic Frontier Foundation The Electronic Frontier Foundation (EFF) is an international non-profit digital rights group based in San Francisco, California. The foundation was formed on 10 July 1990 by John Gilmore, John Perry Barlow and Mitch Kapor to promote Internet ...
for their discovery of a very nearly 13-million-digit Mersenne prime. The prize, finally confirmed in October 2009, is for the first known prime with at least 10 million digits. The prime was found on a Dell OptiPlex 745 on August 23, 2008. This was the eighth Mersenne prime discovered at UCLA. On April 12, 2009, a GIMPS server log reported that a 47th Mersenne prime had possibly been found. The find was first noticed on June 4, 2009, and verified a week later. The prime is . Although it is chronologically the 47th Mersenne prime to be discovered, it is smaller than the largest known at the time, which was the 45th to be discovered. On January 25, 2013, Curtis Cooper, a mathematician at the
University of Central Missouri The University of Central Missouri (UCM) is a public university in Warrensburg, Missouri. In 2019, enrollment was 11,229 students from 49 states and 59 countries on its 1,561-acre campus. UCM offers 150 programs of study, including 10 pre-profes ...
, discovered a 48th Mersenne prime, (a number with 17,425,170 digits), as a result of a search executed by a GIMPS server network. On January 19, 2016, Cooper published his discovery of a 49th Mersenne prime, (a number with 22,338,618 digits), as a result of a search executed by a GIMPS server network. This was the fourth Mersenne prime discovered by Cooper and his team in the past ten years. On September 2, 2016, the Great Internet Mersenne Prime Search finished verifying all tests below M37,156,667, thus officially confirming its position as the 45th Mersenne prime. On January 3, 2018, it was announced that Jonathan Pace, a 51-year-old electrical engineer living in
Germantown, Tennessee Germantown is a city in Shelby County, Tennessee, United States. The population was 41,333 at the 2020 census. Germantown is a suburb of Memphis, bordering it to the east-southeast. Germantown was founded in 1841 by mostly German emigrants. Th ...
, had found a 50th Mersenne prime, (a number with 23,249,425 digits), as a result of a search executed by a GIMPS server network. The discovery was made by a computer in the offices of a church in the same town. On December 21, 2018, it was announced that The Great Internet Mersenne Prime Search (GIMPS) discovered the largest known prime number, , having 24,862,048 digits. A computer volunteered by Patrick Laroche from
Ocala, Florida Ocala ( ) is a city in and the county seat of Marion County within the northern region of Florida, United States. As of the 2020 United States Census, the city's population was 63,591, making it the 54th most populated city in Florida. Home to ...
made the find on December 7, 2018. In late 2020, GIMPS began using a new technique to rule out potential Mersenne primes called the
Probable prime In number theory, a probable prime (PRP) is an integer that satisfies a specific condition that is satisfied by all prime numbers, but which is not satisfied by most composite numbers. Different types of probable primes have different specific con ...
(PRP) test, based on development from Robert Gerbicz in 2017, and a simple way to verify tests developed by Krzysztof Pietrzak in 2018. Due to the low error rate and ease of proof, this nearly halved the computing time to rule out potential primes over the Lucas-Lehmer test (as two users would no longer have to perform the same test to confirm the other's result), although exponents passing the PRP test still require one to confirm their primality.


Theorems about Mersenne numbers

# If and are natural numbers such that is prime, then or . #* Proof: . Then , so . Thus . However, is prime, so or . In the former case, , hence (which is a contradiction, as neither −1 nor 0 is prime) or In the latter case, or . If , however, which is not prime. Therefore, . # If is prime, then is prime. #* Proof: Suppose that is composite, hence can be written with and . Then so is composite. By contrapositive, if is prime then ''p'' is prime. # If is an odd prime, then every prime that divides must be 1 plus a multiple of . This holds even when is prime. #* For example, is prime, and . A composite example is , where and . #* Proof: By
Fermat's little theorem Fermat's little theorem states that if ''p'' is a prime number, then for any integer ''a'', the number a^p - a is an integer multiple of ''p''. In the notation of modular arithmetic, this is expressed as : a^p \equiv a \pmod p. For example, if = ...
, is a factor of . Since is a factor of , for all positive integers , is also a factor of . Since is prime and is not a factor of , is also the smallest positive integer such that is a factor of . As a result, for all positive integers , is a factor of if and only if is a factor of . Therefore, since is a factor of , is a factor of so . Furthermore, since is a factor of , which is odd, is odd. Therefore, . #* This fact leads to a proof of
Euclid's theorem Euclid's theorem is a fundamental statement in number theory that asserts that there are infinitely many prime numbers. It was first proved by Euclid in his work ''Elements''. There are several proofs of the theorem. Euclid's proof Euclid offered ...
, which asserts the infinitude of primes, distinct from the proof written by Euclid: for every odd prime , all primes dividing are larger than ; thus there are always larger primes than any particular prime. #* It follows from this fact that for every prime , there is at least one prime of the form less than or equal to , for some integer . # If is an odd prime, then every prime that divides is congruent to . #* Proof: , so is a square root of . By
quadratic reciprocity In number theory, the law of quadratic reciprocity is a theorem about modular arithmetic that gives conditions for the solvability of quadratic equations modulo prime numbers. Due to its subtlety, it has many formulations, but the most standard st ...
, every prime modulus in which the number 2 has a square root is congruent to . # A Mersenne prime cannot be a
Wieferich prime In number theory, a Wieferich prime is a prime number ''p'' such that ''p''2 divides , therefore connecting these primes with Fermat's little theorem, which states that every odd prime ''p'' divides . Wieferich primes were first described by Ar ...
. #* Proof: We show if is a Mersenne prime, then the congruence does not hold. By Fermat's little theorem, . Therefore, one can write . If the given congruence is satisfied, then , therefore . Hence , and therefore . This leads to , which is impossible since . #If and are natural numbers then and are
coprime In mathematics, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equivale ...
if and only if and are coprime. Consequently, a prime number divides at most one prime-exponent Mersenne number. That is, the set of
pernicious ''Pernicious'' is a Thai-American supernatural horror film directed by James Cullen Bressack, who also wrote the story along with co-writer Taryn Hillin. The film stars Ciara Hanna, Emily O'Brien, and Jackie Moore. Cast * Ciara Hanna as A ...
Mersenne numbers is pairwise coprime. # If and are both prime (meaning that is a
Sophie Germain prime In number theory, a prime number ''p'' is a if 2''p'' + 1 is also prime. The number 2''p'' + 1 associated with a Sophie Germain prime is called a . For example, 11 is a Sophie Germain prime and 2 × 11 +  ...
), and is
congruent Congruence may refer to: Mathematics * Congruence (geometry), being the same size and shape * Congruence or congruence relation, in abstract algebra, an equivalence relation on an algebraic structure that is compatible with the structure * In mod ...
to , then divides . #* Example: 11 and 23 are both prime, and , so 23 divides . #* Proof: Let be . By Fermat's little theorem, , so either or . Supposing latter true, then , so −2 would be a quadratic residue mod . However, since is congruent to , is congruent to and therefore 2 is a quadratic residue mod . Also since is congruent to , −1 is a quadratic nonresidue mod , so −2 is the product of a residue and a nonresidue and hence it is a nonresidue, which is a contradiction. Hence, the former congruence must be true and divides . # All composite divisors of prime-exponent Mersenne numbers are
strong pseudoprime A strong pseudoprime is a composite number that passes the Miller–Rabin primality test. All prime numbers pass this test, but a small fraction of composites also pass, making them "pseudoprimes". Unlike the Fermat pseudoprimes, for which there ex ...
s to the base 2. # With the exception of 1, a Mersenne number cannot be a perfect power. That is, and in accordance with
Mihăilescu's theorem Catalan's conjecture (or Mihăilescu's theorem) is a theorem in number theory that was conjectured by the mathematician Eugène Charles Catalan in 1844 and proven in 2002 by Preda Mihăilescu at Paderborn University. The integers 23 and 32 are ...
, the equation has no solutions where , , and are integers with and .


List of known Mersenne primes

, the 51 known Mersenne primes are 2''p'' − 1 for the following ''p'': :2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607, 1279, 2203, 2281, 3217, 4253, 4423, 9689, 9941, 11213, 19937, 21701, 23209, 44497, 86243, 110503, 132049, 216091, 756839, 859433, 1257787, 1398269, 2976221, 3021377, 6972593, 13466917, 20996011, 24036583, 25964951, 30402457, 32582657, 37156667, 42643801, 43112609, 57885161, 74207281, 77232917, 82589933.


Factorization of composite Mersenne numbers

Since they are prime numbers, Mersenne primes are divisible only by 1 and themselves. However, not all Mersenne numbers are Mersenne primes. Mersenne numbers are very good test cases for the
special number field sieve In number theory, a branch of mathematics, the special number field sieve (SNFS) is a special-purpose integer factorization algorithm. The general number field sieve (GNFS) was derived from it. The special number field sieve is efficient for intege ...
algorithm, so often the largest number factorized with this algorithm has been a Mersenne number. , is the record-holder, having been factored with a variant of the special number field sieve that allows the factorization of several numbers at once. See integer factorization records for links to more information. The special number field sieve can factorize numbers with more than one large factor. If a number has only one very large factor then other algorithms can factorize larger numbers by first finding small factors and then running a
primality test A primality test is an algorithm for determining whether an input number is prime. Among other fields of mathematics, it is used for cryptography. Unlike integer factorization, primality tests do not generally give prime factors, only stating whet ...
on the cofactor. , the largest completely factored number (with
probable prime In number theory, a probable prime (PRP) is an integer that satisfies a specific condition that is satisfied by all prime numbers, but which is not satisfied by most composite numbers. Different types of probable primes have different specific con ...
factors allowed) is , where is a 3,829,294-digit probable prime. It was discovered by a GIMPS participant with nickname "Funky Waddle". , the Mersenne number ''M''1277 is the smallest composite Mersenne number with no known factors; it has no prime factors below 268, and is very unlikely to have any factors below 1065 (~2216). The table below shows factorizations for the first 20 composite Mersenne numbers . The number of factors for the first 500 Mersenne numbers can be found at .


Mersenne numbers in nature and elsewhere

In the mathematical problem
Tower of Hanoi The Tower of Hanoi (also called The problem of Benares Temple or Tower of Brahma or Lucas' Tower and sometimes pluralized as Towers, or simply pyramid puzzle) is a mathematical game or puzzle consisting of three rods and a number of disks of ...
, solving a puzzle with an -disc tower requires steps, assuming no mistakes are made. The number of rice grains on the whole chessboard in the
wheat and chessboard problem The wheat and chessboard problem (sometimes expressed in terms of rice grains) is a mathematical problem expressed in textual form as: The problem may be solved using simple addition. With 64 squares on a chessboard, if the number of grains d ...
is . The
asteroid An asteroid is a minor planet of the inner Solar System. Sizes and shapes of asteroids vary significantly, ranging from 1-meter rocks to a dwarf planet almost 1000 km in diameter; they are rocky, metallic or icy bodies with no atmosphere. ...
with
minor planet According to the International Astronomical Union (IAU), a minor planet is an astronomical object in direct orbit around the Sun that is exclusively classified as neither a planet nor a comet. Before 2006, the IAU officially used the term ''minor ...
number 8191 is named 8191 Mersenne after Marin Mersenne, because 8191 is a Mersenne prime (
3 Juno ) , mp_category=Main belt (Juno clump) , orbit_ref = , epoch= JD 2457000.5 (9 December 2014) , semimajor=2.67070 AU , perihelion=1.98847 AU , aphelion=3.35293 AU , eccentricity=0.25545 , period=4.36463 yr , inclination=12.9817° , asc ...
,
7 Iris Iris (minor planet designation: 7 Iris) is a large main-belt asteroid and perhaps remnant planetesimal orbiting the Sun between Mars and Jupiter. It is the fourth-brightest object in the asteroid belt. It is classified as an S-type asteroid, mea ...
, 31 Euphrosyne and 127 Johanna having been discovered and named during the 19th century). In
geometry Geometry (; ) is, with arithmetic, one of the oldest branches of mathematics. It is concerned with properties of space such as the distance, shape, size, and relative position of figures. A mathematician who works in the field of geometry is c ...
, an integer
right triangle A right triangle (American English) or right-angled triangle ( British), or more formally an orthogonal triangle, formerly called a rectangled triangle ( grc, ὀρθόσγωνία, lit=upright angle), is a triangle in which one angle is a right a ...
that is primitive and has its even leg a power of 2 (  ) generates a unique right triangle such that its
inradius In geometry, the incircle or inscribed circle of a triangle is the largest circle that can be contained in the triangle; it touches (is tangent to) the three sides. The center of the incircle is a triangle center called the triangle's incen ...
is always a Mersenne number. For example, if the even leg is then because it is primitive it constrains the odd leg to be , the
hypotenuse In geometry, a hypotenuse is the longest side of a right-angled triangle, the side opposite the right angle. The length of the hypotenuse can be found using the Pythagorean theorem, which states that the square of the length of the hypotenuse e ...
to be and its inradius to be .


Mersenne–Fermat primes

A Mersenne–Fermat number is defined as , with prime, natural number, and can be written as . When , it is a Mersenne number. When , it is a
Fermat number In mathematics, a Fermat number, named after Pierre de Fermat, who first studied them, is a positive integer of the form :F_ = 2^ + 1, where ''n'' is a non-negative integer. The first few Fermat numbers are: : 3, 5, 17, 257, 65537, 42949672 ...
. The only known Mersenne–Fermat primes with are : and . In fact, , where is the
cyclotomic polynomial In mathematics, the ''n''th cyclotomic polynomial, for any positive integer ''n'', is the unique irreducible polynomial with integer coefficients that is a divisor of x^n-1 and is not a divisor of x^k-1 for any Its roots are all ''n''th primitiv ...
.


Generalizations

The simplest generalized Mersenne primes are prime numbers of the form , where is a low-degree
polynomial In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An exampl ...
with small integer
coefficients In mathematics, a coefficient is a multiplicative factor in some term of a polynomial, a series, or an expression; it is usually a number, but may be any expression (including variables such as , and ). When the coefficients are themselves ...
. An example is , in this case, , and ; another example is , in this case, , and . It is also natural to try to generalize primes of the form to primes of the form (for and ). However (see also theorems above), is always divisible by , so unless the latter is a
unit Unit may refer to: Arts and entertainment * UNIT, a fictional military organization in the science fiction television series ''Doctor Who'' * Unit of action, a discrete piece of action (or beat) in a theatrical presentation Music * ''Unit'' (a ...
, the former is not a prime. This can be remedied by allowing ''b'' to be an algebraic integer instead of an integer:


Complex numbers

In the ring of integers (on
real number In mathematics, a real number is a number that can be used to measure a ''continuous'' one-dimensional quantity such as a distance, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small variations. Every ...
s), if is a
unit Unit may refer to: Arts and entertainment * UNIT, a fictional military organization in the science fiction television series ''Doctor Who'' * Unit of action, a discrete piece of action (or beat) in a theatrical presentation Music * ''Unit'' (a ...
, then is either 2 or 0. But are the usual Mersenne primes, and the formula does not lead to anything interesting (since it is always −1 for all ). Thus, we can regard a ring of "integers" on
complex number In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the fo ...
s instead of
real number In mathematics, a real number is a number that can be used to measure a ''continuous'' one-dimensional quantity such as a distance, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small variations. Every ...
s, like
Gaussian integer In number theory, a Gaussian integer is a complex number whose real and imaginary parts are both integers. The Gaussian integers, with ordinary addition and multiplication of complex numbers, form an integral domain, usually written as \mathbf /ma ...
s and
Eisenstein integer In mathematics, the Eisenstein integers (named after Gotthold Eisenstein), occasionally also known as Eulerian integers (after Leonhard Euler), are the complex numbers of the form :z = a + b\omega , where and are integers and :\omega = \f ...
s.


Gaussian Mersenne primes

If we regard the ring of
Gaussian integer In number theory, a Gaussian integer is a complex number whose real and imaginary parts are both integers. The Gaussian integers, with ordinary addition and multiplication of complex numbers, form an integral domain, usually written as \mathbf /ma ...
s, we get the case and , and can ask ( WLOG) for which the number is a
Gaussian prime In number theory, a Gaussian integer is a complex number whose real and imaginary parts are both integers. The Gaussian integers, with ordinary addition and multiplication of complex numbers, form an integral domain, usually written as \mathbf /ma ...
which will then be called a Gaussian Mersenne prime.Chris Caldwell
The Prime Glossary: Gaussian Mersenne
(part of the
Prime Pages The PrimePages is a website about prime numbers maintained by Chris Caldwell at the University of Tennessee at Martin. The site maintains the list of the "5,000 largest known primes", selected smaller primes of special forms, and many "top twenty" ...
)
is a Gaussian prime for the following : :2, 3, 5, 7, 11, 19, 29, 47, 73, 79, 113, 151, 157, 163, 167, 239, 241, 283, 353, 367, 379, 457, 997, 1367, 3041, 10141, 14699, 27529, 49207, 77291, 85237, 106693, 160423, 203789, 364289, 991961, 1203793, 1667321, 3704053, 4792057, ... Like the sequence of exponents for usual Mersenne primes, this sequence contains only (rational) prime numbers. As for all Gaussian primes, the norms (that is, squares of absolute values) of these numbers are rational primes: :5, 13, 41, 113, 2113, 525313, 536903681, 140737471578113, ... .


Eisenstein Mersenne primes

One may encounter cases where such a Mersenne prime is also an ''Eisenstein prime'', being of the form and . In these cases, such numbers are called Eisenstein Mersenne primes. is an Eisenstein prime for the following : :2, 5, 7, 11, 17, 19, 79, 163, 193, 239, 317, 353, 659, 709, 1049, 1103, 1759, 2029, 5153, 7541, 9049, 10453, 23743, 255361, 534827, 2237561, ... The norms (that is, squares of absolute values) of these Eisenstein primes are rational primes: :7, 271, 2269, 176419, 129159847, 1162320517, ...


Divide an integer


Repunit primes

The other way to deal with the fact that is always divisible by , it is to simply take out this factor and ask which values of make :\frac be prime. (The integer can be either positive or negative.) If, for example, we take , we get values of: :2, 19, 23, 317, 1031, 49081, 86453, 109297, 270343, ... ,
corresponding to primes 11, 1111111111111111111, 11111111111111111111111, ... . These primes are called repunit primes. Another example is when we take , we get values of: :2, 5, 11, 109, 193, 1483, 11353, 21419, 21911, 24071, 106859, 139739, ... ,
corresponding to primes −11, 19141, 57154490053, .... It is a conjecture that for every integer which is not a
perfect power In mathematics, a perfect power is a natural number that is a product of equal natural factors, or, in other words, an integer that can be expressed as a square or a higher integer power of another integer greater than one. More formally, ''n'' ...
, there are infinitely many values of such that is prime. (When is a perfect power, it can be shown that there is at most one value such that is prime) Least such that is prime are (starting with , if no such exists) :2, 3, 2, 3, 2, 5, 3, 0, 2, 17, 2, 5, 3, 3, 2, 3, 2, 19, 3, 3, 2, 5, 3, 0, 7, 3, 2, 5, 2, 7, 0, 3, 13, 313, 2, 13, 3, 349, 2, 3, 2, 5, 5, 19, 2, 127, 19, 0, 3, 4229, 2, 11, 3, 17, 7, 3, 2, 3, 2, 7, 3, 5, 0, 19, 2, 19, 5, 3, 2, 3, 2, ... For negative bases , they are (starting with , if no such exists) :3, 2, 2, 5, 2, 3, 2, 3, 5, 5, 2, 3, 2, 3, 3, 7, 2, 17, 2, 3, 3, 11, 2, 3, 11, 0, 3, 7, 2, 109, 2, 5, 3, 11, 31, 5, 2, 3, 53, 17, 2, 5, 2, 103, 7, 5, 2, 7, 1153, 3, 7, 21943, 2, 3, 37, 53, 3, 17, 2, 7, 2, 3, 0, 19, 7, 3, 2, 11, 3, 5, 2, ... (notice this OEIS sequence does not allow ) Least base such that is prime are :2, 2, 2, 2, 5, 2, 2, 2, 10, 6, 2, 61, 14, 15, 5, 24, 19, 2, 46, 3, 11, 22, 41, 2, 12, 22, 3, 2, 12, 86, 2, 7, 13, 11, 5, 29, 56, 30, 44, 60, 304, 5, 74, 118, 33, 156, 46, 183, 72, 606, 602, 223, 115, 37, 52, 104, 41, 6, 338, 217, ... For negative bases , they are :3, 2, 2, 2, 2, 2, 2, 2, 2, 7, 2, 16, 61, 2, 6, 10, 6, 2, 5, 46, 18, 2, 49, 16, 70, 2, 5, 6, 12, 92, 2, 48, 89, 30, 16, 147, 19, 19, 2, 16, 11, 289, 2, 12, 52, 2, 66, 9, 22, 5, 489, 69, 137, 16, 36, 96, 76, 117, 26, 3, ...


Other generalized Mersenne primes

Another generalized Mersenne number is :\frac with , any
coprime In mathematics, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equivale ...
integers, and . (Since is always divisible by , the division is necessary for there to be any chance of finding prime numbers.) We can ask which makes this number prime. It can be shown that such must be primes themselves or equal to 4, and can be 4 if and only if and is prime. It is a conjecture that for any pair such that and are not both perfect th powers for any and is not a perfect fourth power, there are infinitely many values of such that is prime. However, this has not been proved for any single value of . is prime
(some large terms are only
probable prime In number theory, a probable prime (PRP) is an integer that satisfies a specific condition that is satisfied by all prime numbers, but which is not satisfied by most composite numbers. Different types of probable primes have different specific con ...
s, these are checked up to for or , for ) !
OEIS The On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. It was created and maintained by Neil Sloane while researching at AT&T Labs. He transferred the intellectual property and hosting of the OEIS to the ...
sequence , - , style="text-align:right;" , 2 , style="text-align:right;" , 1 , 2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607, 1279, 2203, 2281, 3217, 4253, 4423, 9689, 9941, 11213, 19937, 21701, 23209, 44497, 86243, 110503, 132049, 216091, 756839, 859433, 1257787, 1398269, 2976221, 3021377, 6972593, 13466917, 20996011, 24036583, 25964951, 30402457, 32582657, 37156667, 42643801, 43112609, 57885161, ..., 74207281, ..., 77232917, ..., 82589933, ... , , - , style="text-align:right;" , 2 , style="text-align:right;" , −1 , 3, 4*, 5, 7, 11, 13, 17, 19, 23, 31, 43, 61, 79, 101, 127, 167, 191, 199, 313, 347, 701, 1709, 2617, 3539, 5807, 10501, 10691, 11279, 12391, 14479, 42737, 83339, 95369, 117239, 127031, 138937, 141079, 267017, 269987, 374321, 986191, 4031399, ..., 13347311, 13372531, ... , , - , style="text-align:right;" , 3 , style="text-align:right;" , 2 , 2, 3, 5, 17, 29, 31, 53, 59, 101, 277, 647, 1061, 2381, 2833, 3613, 3853, 3929, 5297, 7417, 90217, 122219, 173191, 256199, 336353, 485977, 591827, 1059503, ... , , - , style="text-align:right;" , 3 , style="text-align:right;" , 1 , 3, 7, 13, 71, 103, 541, 1091, 1367, 1627, 4177, 9011, 9551, 36913, 43063, 49681, 57917, 483611, 877843, ... , , - , style="text-align:right;" , 3 , style="text-align:right;" , −1 , 2*, 3, 5, 7, 13, 23, 43, 281, 359, 487, 577, 1579, 1663, 1741, 3191, 9209, 11257, 12743, 13093, 17027, 26633, 104243, 134227, 152287, 700897, 1205459, ... , , - , style="text-align:right;" , 3 , style="text-align:right;" , −2 , 3, 4*, 7, 11, 83, 149, 223, 599, 647, 1373, 8423, 149497, 388897, ... , , - , style="text-align:right;" , 4 , style="text-align:right;" , 3 , 2, 3, 7, 17, 59, 283, 311, 383, 499, 521, 541, 599, 1193, 1993, 2671, 7547, 24019, 46301, 48121, 68597, 91283, 131497, 148663, 184463, 341233, ... , , - , style="text-align:right;" , 4 , style="text-align:right;" , 1 , 2 (no others) , , - , style="text-align:right;" , 4 , style="text-align:right;" , −1 , 2*, 3 (no others) , , - , style="text-align:right;" , 4 , style="text-align:right;" , −3 , 3, 5, 19, 37, 173, 211, 227, 619, 977, 1237, 2437, 5741, 13463, 23929, 81223, 121271, ... , , - , style="text-align:right;" , 5 , style="text-align:right;" , 4 , 3, 43, 59, 191, 223, 349, 563, 709, 743, 1663, 5471, 17707, 19609, 35449, 36697, 45259, 91493, 246497, 265007, 289937, ... , , - , style="text-align:right;" , 5 , style="text-align:right;" , 3 , 13, 19, 23, 31, 47, 127, 223, 281, 2083, 5281, 7411, 7433, 19051, 27239, 35863, 70327, ... , , - , style="text-align:right;" , 5 , style="text-align:right;" , 2 , 2, 5, 7, 13, 19, 37, 59, 67, 79, 307, 331, 599, 1301, 12263, 12589, 18443, 20149, 27983, ... , , - , style="text-align:right;" , 5 , style="text-align:right;" , 1 , 3, 7, 11, 13, 47, 127, 149, 181, 619, 929, 3407, 10949, 13241, 13873, 16519, 201359, 396413, 1888279, ... , , - , style="text-align:right;" , 5 , style="text-align:right;" , −1 , 5, 67, 101, 103, 229, 347, 4013, 23297, 30133, 177337, 193939, 266863, 277183, 335429, ... , , - , style="text-align:right;" , 5 , style="text-align:right;" , −2 , 2*, 3, 17, 19, 47, 101, 1709, 2539, 5591, 6037, 8011, 19373, 26489, 27427, ... , , - , style="text-align:right;" , 5 , style="text-align:right;" , −3 , 2*, 3, 5, 7, 17, 19, 109, 509, 661, 709, 1231, 12889, 13043, 26723, 43963, 44789, ... , , - , style="text-align:right;" , 5 , style="text-align:right;" , −4 , 4*, 5, 7, 19, 29, 61, 137, 883, 1381, 1823, 5227, 25561, 29537, 300893, ... , , - , style="text-align:right;" , 6 , style="text-align:right;" , 5 , 2, 5, 11, 13, 23, 61, 83, 421, 1039, 1511, 31237, 60413, 113177, 135647, 258413, ... , , - , style="text-align:right;" , 6 , style="text-align:right;" , 1 , 2, 3, 7, 29, 71, 127, 271, 509, 1049, 6389, 6883, 10613, 19889, 79987, 608099, ... , , - , style="text-align:right;" , 6 , style="text-align:right;" , −1 , 2*, 3, 11, 31, 43, 47, 59, 107, 811, 2819, 4817, 9601, 33581, 38447, 41341, 131891, 196337, ... , , - , style="text-align:right;" , 6 , style="text-align:right;" , −5 , 3, 4*, 5, 17, 397, 409, 643, 1783, 2617, 4583, 8783, ... , , - , style="text-align:right;" , 7 , style="text-align:right;" , 6 , 2, 3, 7, 29, 41, 67, 1327, 1399, 2027, 69371, 86689, 355039, ... , , - , style="text-align:right;" , 7 , style="text-align:right;" , 5 , 3, 5, 7, 113, 397, 577, 7573, 14561, 58543, ... , , - , style="text-align:right;" , 7 , style="text-align:right;" , 4 , 2, 5, 11, 61, 619, 2879, 2957, 24371, 69247, ... , , - , style="text-align:right;" , 7 , style="text-align:right;" , 3 , 3, 7, 19, 109, 131, 607, 863, 2917, 5923, 12421, ... , , - , style="text-align:right;" , 7 , style="text-align:right;" , 2 , 3, 7, 19, 79, 431, 1373, 1801, 2897, 46997, ... , , - , style="text-align:right;" , 7 , style="text-align:right;" , 1 , 5, 13, 131, 149, 1699, 14221, 35201, 126037, 371669, 1264699, ... , , - , style="text-align:right;" , 7 , style="text-align:right;" , −1 , 3, 17, 23, 29, 47, 61, 1619, 18251, 106187, 201653, ... , , - , style="text-align:right;" , 7 , style="text-align:right;" , −2 , 2*, 5, 23, 73, 101, 401, 419, 457, 811, 1163, 1511, 8011, ... , , - , style="text-align:right;" , 7 , style="text-align:right;" , −3 , 3, 13, 31, 313, 3709, 7933, 14797, 30689, 38333, ... , , - , style="text-align:right;" , 7 , style="text-align:right;" , −4 , 2*, 3, 5, 19, 41, 47, 8231, 33931, 43781, 50833, 53719, 67211, ... , , - , style="text-align:right;" , 7 , style="text-align:right;" , −5 , 2*, 11, 31, 173, 271, 547, 1823, 2111, 5519, 7793, 22963, 41077, 49739, ... , , - , style="text-align:right;" , 7 , style="text-align:right;" , −6 , 3, 53, 83, 487, 743, ... , , - , style="text-align:right;" , 8 , style="text-align:right;" , 7 , 7, 11, 17, 29, 31, 79, 113, 131, 139, 4357, 44029, 76213, 83663, 173687, 336419, 615997, ... , , - , style="text-align:right;" , 8 , style="text-align:right;" , 5 , 2, 19, 1021, 5077, 34031, 46099, 65707, ... , , - , style="text-align:right;" , 8 , style="text-align:right;" , 3 , 2, 3, 7, 19, 31, 67, 89, 9227, 43891, ... , , - , style="text-align:right;" , 8 , style="text-align:right;" , 1 , 3 (no others) , , - , style="text-align:right;" , 8 , style="text-align:right;" , −1 , 2* (no others) , , - , style="text-align:right;" , 8 , style="text-align:right;" , −3 , 2*, 5, 163, 191, 229, 271, 733, 21059, 25237, ... , , - , style="text-align:right;" , 8 , style="text-align:right;" , −5 , 2*, 7, 19, 167, 173, 223, 281, 21647, ... , , - , style="text-align:right;" , 8 , style="text-align:right;" , −7 , 4*, 7, 13, 31, 43, 269, 353, 383, 619, 829, 877, 4957, 5711, 8317, 21739, 24029, 38299, ... , , - , style="text-align:right;" , 9 , style="text-align:right;" , 8 , 2, 7, 29, 31, 67, 149, 401, 2531, 19913, 30773, 53857, 170099, ... , , - , style="text-align:right;" , 9 , style="text-align:right;" , 7 , 3, 5, 7, 4703, 30113, ... , , - , style="text-align:right;" , 9 , style="text-align:right;" , 5 , 3, 11, 17, 173, 839, 971, 40867, 45821, ... , , - , style="text-align:right;" , 9 , style="text-align:right;" , 4 , 2 (no others) , , - , style="text-align:right;" , 9 , style="text-align:right;" , 2 , 2, 3, 5, 13, 29, 37, 1021, 1399, 2137, 4493, 5521, ... , , - , style="text-align:right;" , 9 , style="text-align:right;" , 1 , (none) , , - , style="text-align:right;" , 9 , style="text-align:right;" , −1 , 3, 59, 223, 547, 773, 1009, 1823, 3803, 49223, 193247, 703393, ... , , - , style="text-align:right;" , 9 , style="text-align:right;" , −2 , 2*, 3, 7, 127, 283, 883, 1523, 4001, ... , , - , style="text-align:right;" , 9 , style="text-align:right;" , −4 , 2*, 3, 5, 7, 11, 17, 19, 41, 53, 109, 167, 2207, 3623, 5059, 5471, 7949, 21211, 32993, 60251, ... , , - , style="text-align:right;" , 9 , style="text-align:right;" , −5 , 3, 5, 13, 17, 43, 127, 229, 277, 6043, 11131, 11821, ... , , - , style="text-align:right;" , 9 , style="text-align:right;" , −7 , 2*, 3, 107, 197, 2843, 3571, 4451, ..., 31517, ... , , - , style="text-align:right;" , 9 , style="text-align:right;" , −8 , 3, 7, 13, 19, 307, 619, 2089, 7297, 75571, 76103, 98897, ... , , - , style="text-align:right;" , 10 , style="text-align:right;" , 9 , 2, 3, 7, 11, 19, 29, 401, 709, 2531, 15787, 66949, 282493, ... , , - , style="text-align:right;" , 10 , style="text-align:right;" , 7 , 2, 31, 103, 617, 10253, 10691, ... , , - , style="text-align:right;" , 10 , style="text-align:right;" , 3 , 2, 3, 5, 37, 599, 38393, 51431, ... , , - , style="text-align:right;" , 10 , style="text-align:right;" , 1 , 2, 19, 23, 317, 1031, 49081, 86453, 109297, 270343, ... , , - , style="text-align:right;" , 10 , style="text-align:right;" , −1 , 5, 7, 19, 31, 53, 67, 293, 641, 2137, 3011, 268207, ... , , - , style="text-align:right;" , 10 , style="text-align:right;" , −3 , 2*, 3, 19, 31, 101, 139, 167, 1097, 43151, 60703, 90499, ... , , - , style="text-align:right;" , 10 , style="text-align:right;" , −7 , 2*, 3, 5, 11, 19, 1259, 1399, 2539, 2843, 5857, 10589, ... , , - , style="text-align:right;" , 10 , style="text-align:right;" , −9 , 4*, 7, 67, 73, 1091, 1483, 10937, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , 10 , 3, 5, 19, 311, 317, 1129, 4253, 7699, 18199, 35153, 206081, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , 9 , 5, 31, 271, 929, 2789, 4153, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , 8 , 2, 7, 11, 17, 37, 521, 877, 2423, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , 7 , 5, 19, 67, 107, 593, 757, 1801, 2243, 2383, 6043, 10181, 11383, 15629, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , 6 , 2, 3, 11, 163, 191, 269, 1381, 1493, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , 5 , 5, 41, 149, 229, 263, 739, 3457, 20269, 98221, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , 4 , 3, 5, 11, 17, 71, 89, 827, 22307, 45893, 63521, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , 3 , 3, 5, 19, 31, 367, 389, 431, 2179, 10667, 13103, 90397, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , 2 , 2, 5, 11, 13, 331, 599, 18839, 23747, 24371, 29339, 32141, 67421, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , 1 , 17, 19, 73, 139, 907, 1907, 2029, 4801, 5153, 10867, 20161, 293831, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , −1 , 5, 7, 179, 229, 439, 557, 6113, 223999, 327001, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , −2 , 3, 5, 17, 67, 83, 101, 1373, 6101, 12119, 61781, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , −3 , 3, 103, 271, 523, 23087, 69833, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , −4 , 2*, 7, 53, 67, 71, 443, 26497, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , −5 , 7, 11, 181, 421, 2297, 2797, 4129, 4139, 7151, 29033, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , −6 , 2*, 5, 7, 107, 383, 17359, 21929, 26393, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , −7 , 7, 1163, 4007, 10159, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , −8 , 2*, 3, 13, 31, 59, 131, 223, 227, 1523, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , −9 , 2*, 3, 17, 41, 43, 59, 83, ... , , - , style="text-align:right;" , 11 , style="text-align:right;" , −10 , 53, 421, 647, 1601, 35527, ... , , - , style="text-align:right;" , 12 , style="text-align:right;" , 11 , 2, 3, 7, 89, 101, 293, 4463, 70067, ... , , - , style="text-align:right;" , 12 , style="text-align:right;" , 7 , 2, 3, 7, 13, 47, 89, 139, 523, 1051, ... , , - , style="text-align:right;" , 12 , style="text-align:right;" , 5 , 2, 3, 31, 41, 53, 101, 421, 1259, 4721, 45259, ... , , - , style="text-align:right;" , 12 , style="text-align:right;" , 1 , 2, 3, 5, 19, 97, 109, 317, 353, 701, 9739, 14951, 37573, 46889, 769543, ... , , - , style="text-align:right;" , 12 , style="text-align:right;" , −1 , 2*, 5, 11, 109, 193, 1483, 11353, 21419, 21911, 24071, 106859, 139739, ... , , - , style="text-align:right;" , 12 , style="text-align:right;" , −5 , 2*, 3, 5, 13, 347, 977, 1091, 4861, 4967, 34679, ... , , - , style="text-align:right;" , 12 , style="text-align:right;" , −7 , 2*, 3, 7, 67, 79, 167, 953, 1493, 3389, 4871, ... , , - , style="text-align:right;" , 12 , style="text-align:right;" , −11 , 47, 401, 509, 8609, ... , *Note: if and is even, then the numbers are not included in the corresponding OEIS sequence. When , it is , a difference of two consecutive perfect th powers, and if is prime, then must be , because it is divisible by . Least such that is prime are :2, 2, 2, 3, 2, 2, 7, 2, 2, 3, 2, 17, 3, 2, 2, 5, 3, 2, 5, 2, 2, 229, 2, 3, 3, 2, 3, 3, 2, 2, 5, 3, 2, 3, 2, 2, 3, 3, 2, 7, 2, 3, 37, 2, 3, 5, 58543, 2, 3, 2, 2, 3, 2, 2, 3, 2, 5, 3, 4663, 54517, 17, 3, 2, 5, 2, 3, 3, 2, 2, 47, 61, 19, ... Least such that is prime are :1, 1, 1, 1, 5, 1, 1, 1, 5, 2, 1, 39, 6, 4, 12, 2, 2, 1, 6, 17, 46, 7, 5, 1, 25, 2, 41, 1, 12, 7, 1, 7, 327, 7, 8, 44, 26, 12, 75, 14, 51, 110, 4, 14, 49, 286, 15, 4, 39, 22, 109, 367, 22, 67, 27, 95, 80, 149, 2, 142, 3, 11, ...


See also

*
Repunit In recreational mathematics, a repunit is a number like 11, 111, or 1111 that contains only the digit 1 — a more specific type of repdigit. The term stands for repeated unit and was coined in 1966 by Albert H. Beiler in his book ''Recreat ...
*
Fermat prime In mathematics, a Fermat number, named after Pierre de Fermat, who first studied them, is a positive integer of the form :F_ = 2^ + 1, where ''n'' is a non-negative integer. The first few Fermat numbers are: : 3, 5, 17, 257, 65537, 429496 ...
*
Power of two A power of two is a number of the form where is an integer, that is, the result of exponentiation with number two as the base and integer  as the exponent. In a context where only integers are considered, is restricted to non-negat ...
* Erdős–Borwein constant * Mersenne conjectures *
Mersenne twister The Mersenne Twister is a general-purpose pseudorandom number generator (PRNG) developed in 1997 by and . Its name derives from the fact that its period length is chosen to be a Mersenne prime. The Mersenne Twister was designed specifically to re ...
* Double Mersenne number *
Prime95 Prime95, also distributed as the command-line utility mprime for FreeBSD and Linux, is a freeware application written by George Woltman. It is the official client of the Great Internet Mersenne Prime Search (GIMPS), a volunteer computing proj ...
/ MPrime *
Great Internet Mersenne Prime Search The Great Internet Mersenne Prime Search (GIMPS) is a collaborative project of volunteers who use freely available software to search for Mersenne prime numbers. GIMPS was founded in 1996 by George Woltman, who also wrote the Prime95 client a ...
(GIMPS) * Largest known prime number *
Wieferich prime In number theory, a Wieferich prime is a prime number ''p'' such that ''p''2 divides , therefore connecting these primes with Fermat's little theorem, which states that every odd prime ''p'' divides . Wieferich primes were first described by Ar ...
* Wagstaff prime * Cullen prime *
Woodall prime In number theory, a Woodall number (''W'n'') is any natural number of the form :W_n = n \cdot 2^n - 1 for some natural number ''n''. The first few Woodall numbers are: :1, 7, 23, 63, 159, 383, 895, … . History Woodall numbers were first st ...
*
Proth prime A Proth number is a natural number ''N'' of the form N = k \times 2^n +1 where ''k'' and ''n'' are positive integers, ''k'' is odd and 2^n > k. A Proth prime is a Proth number that is prime. They are named after the French mathematician François ...
*
Solinas prime In mathematics, a Solinas prime, or generalized Mersenne prime, is a prime number that has the form f(2^m), where f(x) is a low- degree polynomial with small integer coefficients. These primes allow fast modular reduction algorithms and are widely u ...
* Gillies' conjecture * Williams number


Notes


References


External links

*
GIMPS home pageGIMPS Milestones Report
– status page gives various statistics on search progress, typically updated every week, including progress towards proving the ordering of the largest known Mersenne primes
GIMPS, known factors of Mersenne numbers

Property of Mersenne numbers with prime exponent that are composite
(PDF)
math thesis
(PS) *

with hyperlinks to original publications
report about Mersenne primes
– detection in detail
GIMPS wiki
– contains factors for small Mersenne numbers
Known factors of Mersenne numbers
*http://www.leyland.vispa.com/numth/factorization/cunningham/2-.txt *http://www.leyland.vispa.com/numth/factorization/cunningham/2+.txt * – Factorization of Mersenne numbers ( up to 1280)
Factorization of completely factored Mersenne numbers
*http://www.leyland.vispa.com/numth/factorization/cunningham/main.htm *http://www.leyland.vispa.com/numth/factorization/anbn/main.htm


MathWorld links

* * {{DEFAULTSORT:Mersenne Prime Articles containing proofs Classes of prime numbers Unsolved problems in number theory Integer sequences Perfect numbers