---
title: "Meaning & Key Takeaway of: The Lucas-Lehmer primality test also uses…"
description: "\"“The Lucas-Lehmer primality test also uses a recursive function to produce a sequence of numbers (the Lucas-Lehmer sequence). This sequence starts with..."
image: "https://sms4smile.com/quotes/i/d25/matt-parker-16629_mathematics_the-lucas-lehmer-primality-test-also-use_2628157.jpg"
---

#  The Lucas-Lehmer primality test also uses a recursive…

![“The Lucas-Lehmer primality test also uses a recursive function to produce a sequence of numbers (the Lucas-Lehmer sequence). This sequence starts with 4, and each number after that is the previous number squared, minus 2 (see below). For any Mersenne number (such as 2^3 - 1 = 7 and 2 ^ 8 - 1 =…” quote by Matt Parker](https://sms4smile.com/quotes/i/d25/matt-parker-16629_mathematics_the-lucas-lehmer-primality-test-also-use_2628157.jpg)   [Download](https://sms4smile.com/quotes/i/d25/matt-parker-16629_mathematics_the-lucas-lehmer-primality-test-also-use_2628157.jpg) [Open image](https://sms4smile.com/quotes/i/d25/matt-parker-16629_mathematics_the-lucas-lehmer-primality-test-also-use_2628157.jpg)

> ““The Lucas-Lehmer primality test also uses a recursive function to produce a sequence of numbers (the Lucas-Lehmer sequence). This sequence starts with 4, and each number after that is the previous number squared, minus 2 (see below). For any Mersenne number (such as 2^3 - 1 = 7 and 2 ^ 8 - 1 = 255), you take its power of 2 ( so, 3 and 8 in our examples) and, if the Lucas-Lehmer number in the position one less than that power ( so, second and seventh) is an exact multiple ( no remainders allowed) of the Mersenne number, then it is definitely prime.””

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

## About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

The test checks Mersenne numbers for primality by iterating a specific recurrence; if the final term is divisible by the original number, it is prime.

**In simple terms:** A method to prove certain numbers are prime.

Key Takeaway

Use the test to verify large primes.

Themes

mathematics number theory algorithm primality testing

Mood

analytical curious

Type

educational technical

When to use this quote

- research
- cryptography
- education
- software development

Key Concepts

recursion modular arithmetic Mersenne primes

Questions to Reflect On

- Can you explain the recurrence in simple terms?
- Why are Mersenne primes important?

A Different Perspective

Complexity grows quickly for very large exponents.

★ ★ ★ ★ ★   No ratings yet

[Mathematics](https://sms4smile.com/quotes/about/mathematics/)

## Related quotes

> [“Despite their ubiquity on the number line, transcendentals are surprisingly hard to pin down. It took until 1873 to prove that e was transcendental,…](https://sms4smile.com/quotes/matt-parker/despite-their-ubiquity-on-the-number-line-transcendentals-are/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“Along with working on the Basel problem, Euler realized that adding an infinite sequence of reciprocal powers for all whole numbers will give you…](https://sms4smile.com/quotes/matt-parker/along-with-working-on-the-basel-problem-euler-realized-that-adding-an/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [The mathematical facts worthy of being studied are those which, by their analogy with other facts, are capable of leading us to the knowledge…](https://sms4smile.com/quotes/henri-poincare/the-mathematical-facts-worthy-of-being-studied-are-those-which-by/)

[Henri Poincare](https://sms4smile.com/quotes/author/henri-poincare/)

> [“One is the notion that knowledge is worth acquiring, all knowledge, and that a solid grounding in mathematics provides one with the essential language…](https://sms4smile.com/quotes/william-h-patterson-jr/one-is-the-notion-that-knowledge-is-worth-acquiring-all-knowledge-and/)

[William H. Patterson Jr](https://sms4smile.com/quotes/author/william-h-patterson-jr/)

> [“How in the world did I ever find you?” Mackenzie Winters “Math class.” Brandon Knight”](https://sms4smile.com/quotes/bella-jeanisse/how-in-the-world-did-i-ever-find-you-mackenzie-winters-math-class/)

[Bella Jeanisse](https://sms4smile.com/quotes/author/bella-jeanisse/)

> [In school math and science were my favorite subjects, but I probably in my true self I'm more of a people person. At the…](https://sms4smile.com/quotes/emily-deschanel/in-school-math-and-science-were-my-favorite-subjects-but-i-probably/)

[Emily Deschanel](https://sms4smile.com/quotes/author/emily-deschanel/)

> [Geometry, which should only obey Physics, when united with it sometimes commands it. If it happens that the question which we wish to examine…](https://sms4smile.com/quotes/jean-le-rond-d-alembert/geometry-which-should-only-obey-physics-when-united-with-it-sometimes/)

[Jean le Rond d'Alembert](https://sms4smile.com/quotes/author/jean-le-rond-d-alembert/)

> [For a physicist mathematics is not just a tool by means of which phenomena can be calculated, it is the main source of concepts…](https://sms4smile.com/quotes/freeman-dyson/for-a-physicist-mathematics-is-not-just-a-tool-by-means-of-which/)

[Freeman Dyson](https://sms4smile.com/quotes/author/freeman-dyson/)

> [“I had a chat with May and I had a sweet talk with April but the lovely conversation that left me to ponder was…](https://sms4smile.com/quotes/ernest-agyemang-yeboah/i-had-a-chat-with-may-and-i-had-a-sweet-talk-with-april-but-the/)

[Ernest Agyemang Yeboah](https://sms4smile.com/quotes/author/ernest-agyemang-yeboah/)

> [There's no reason for men to be better at maths than women - it's just about our perception.](https://sms4smile.com/quotes/rachel-riley/there-s-no-reason-for-men-to-be-better-at-maths-than-women-it-s-just/)

[Rachel Riley](https://sms4smile.com/quotes/author/rachel-riley/)

> [If enough money is involved and enough people believe that two plus two equals five the media will report the story with a straight…](https://sms4smile.com/quotes/susan-jacoby/if-enough-money-is-involved-and-enough-people-believe-that-two-plus/)

[Susan Jacoby](https://sms4smile.com/quotes/author/susan-jacoby/)

> [Rule number something or other -- never tell anybody anything unless you're going to get something better in return.](https://sms4smile.com/quotes/sara-paretsky/rule-number-something-or-other-never-tell-anybody-anything-unless-you/)

[Sara Paretsky](https://sms4smile.com/quotes/author/sara-paretsky/)

> [For the execution of the voyage to the Indies, I did not make use of intelligence, mathematics or maps.](https://sms4smile.com/quotes/christopher-columbus/for-the-execution-of-the-voyage-to-the-indies-i-did-not-make-use-of/)

[Christopher Columbus](https://sms4smile.com/quotes/author/christopher-columbus/)

> [“π is a mathematician’s dessert”](https://sms4smile.com/quotes/neve-maslakovic/is-a-mathematician-s-dessert/)

Neve Maslakovic

> [It is indeed a surprising and fortunate fact that nature can be expressed by relatively low-order mathematical functions.](https://sms4smile.com/quotes/rudolf-carnap/it-is-indeed-a-surprising-and-fortunate-fact-that-nature-can-be/)

[Rudolf Carnap](https://sms4smile.com/quotes/author/rudolf-carnap/)

## More by Matt Parker

> [“Along with working on the Basel problem, Euler realized that adding an infinite sequence of reciprocal powers for all whole numbers will give you…](https://sms4smile.com/quotes/matt-parker/along-with-working-on-the-basel-problem-euler-realized-that-adding-an/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“I was believing your kind were all dead!' Warvitch bellowed at the minotaur, over the sithkall's choking death growls. 'It will be a great…](https://sms4smile.com/quotes/matt-parker/i-was-believing-your-kind-were-all-dead-warvitch-bellowed-at-the/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“Despite their ubiquity on the number line, transcendentals are surprisingly hard to pin down. It took until 1873 to prove that e was transcendental,…](https://sms4smile.com/quotes/matt-parker/despite-their-ubiquity-on-the-number-line-transcendentals-are/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“The proof in 1882 that pi is a transcendental number put a 2,000 year old problem to rest: for any given circle, can you…](https://sms4smile.com/quotes/matt-parker/the-proof-in-1882-that-pi-is-a-transcendental-number-put-a-2-000-year/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“The compact disc may now be outdated technology, but a lot of music albums are still released on CD. A standard 700-megabyte CD is…](https://sms4smile.com/quotes/matt-parker/the-compact-disc-may-now-be-outdated-technology-but-a-lot-of-music/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“The zeta function is the sum of an infinite sequence of inverse powers.”](https://sms4smile.com/quotes/matt-parker/the-zeta-function-is-the-sum-of-an-infinite-sequence-of-inverse-powers/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“At a very rough estimate, the domino computer we built took six hours to set up and run, which means it could do four…](https://sms4smile.com/quotes/matt-parker/at-a-very-rough-estimate-the-domino-computer-we-built-took-six-hours/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“In our current number system, if you multiply 111,111,111 by itself, you get the rather pleasing 12,345,678,987,654,321 (all the digits count up from 1…](https://sms4smile.com/quotes/matt-parker/in-our-current-number-system-if-you-multiply-111-111-111-by-itself/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“Much as it took Lucas to revolutionize the search for Mersennes primes and Lord Kelvin to introduce new ways to look for space-filling-shapes, I…](https://sms4smile.com/quotes/matt-parker/much-as-it-took-lucas-to-revolutionize-the-search-for-mersennes/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“For DNA to reproduce, it needs to unzip itself down the middle, and the topology of the dna chain dictates which knots are formed…](https://sms4smile.com/quotes/matt-parker/for-dna-to-reproduce-it-needs-to-unzip-itself-down-the-middle-and-the/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“To this day, the Clay Mathematics Institute's bounty of $1 million for anyone who can prove that all the non-trivial zeroes of the zeta…](https://sms4smile.com/quotes/matt-parker/to-this-day-the-clay-mathematics-institute-s-bounty-of-1-million-for/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“The Riemann Hypothesis states that all the non-trivial zeroes of the zeta function are on this line. If we can prove the Riemann Hypothesis…](https://sms4smile.com/quotes/matt-parker/the-riemann-hypothesis-states-that-all-the-non-trivial-zeroes-of-the/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“I find this whole area of packing problems hugely exciting. Humans know very little about the mathematics of packing objects into spaces. It seems…](https://sms4smile.com/quotes/matt-parker/i-find-this-whole-area-of-packing-problems-hugely-exciting-humans/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“Golden powers give the Lucas numbers.”](https://sms4smile.com/quotes/matt-parker/golden-powers-give-the-lucas-numbers/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

> [“For our 2D square, this diagonal length is sqrt 2 = 1.414; …The diagonal from the centre of each padding sphere to the centre…](https://sms4smile.com/quotes/matt-parker/for-our-2d-square-this-diagonal-length-is-sqrt-2-1-414-the-diagonal/)

[Matt Parker](https://sms4smile.com/quotes/author/matt-parker/)

[Explore all 39 Matt Parker quotes ](https://sms4smile.com/quotes/author/matt-parker/)

## More Mathematics quotes

> [It is indeed a surprising and fortunate fact that nature can be expressed by relatively low-order mathematical functions.](https://sms4smile.com/quotes/rudolf-carnap/it-is-indeed-a-surprising-and-fortunate-fact-that-nature-can-be/)

[Rudolf Carnap](https://sms4smile.com/quotes/author/rudolf-carnap/)

> [“π is a mathematician’s dessert”](https://sms4smile.com/quotes/neve-maslakovic/is-a-mathematician-s-dessert/)

Neve Maslakovic

> [For the execution of the voyage to the Indies, I did not make use of intelligence, mathematics or maps.](https://sms4smile.com/quotes/christopher-columbus/for-the-execution-of-the-voyage-to-the-indies-i-did-not-make-use-of/)

[Christopher Columbus](https://sms4smile.com/quotes/author/christopher-columbus/)

> [Rule number something or other -- never tell anybody anything unless you're going to get something better in return.](https://sms4smile.com/quotes/sara-paretsky/rule-number-something-or-other-never-tell-anybody-anything-unless-you/)

[Sara Paretsky](https://sms4smile.com/quotes/author/sara-paretsky/)

> [If enough money is involved and enough people believe that two plus two equals five the media will report the story with a straight…](https://sms4smile.com/quotes/susan-jacoby/if-enough-money-is-involved-and-enough-people-believe-that-two-plus/)

[Susan Jacoby](https://sms4smile.com/quotes/author/susan-jacoby/)

> [There's no reason for men to be better at maths than women - it's just about our perception.](https://sms4smile.com/quotes/rachel-riley/there-s-no-reason-for-men-to-be-better-at-maths-than-women-it-s-just/)

[Rachel Riley](https://sms4smile.com/quotes/author/rachel-riley/)

> [“I had a chat with May and I had a sweet talk with April but the lovely conversation that left me to ponder was…](https://sms4smile.com/quotes/ernest-agyemang-yeboah/i-had-a-chat-with-may-and-i-had-a-sweet-talk-with-april-but-the/)

[Ernest Agyemang Yeboah](https://sms4smile.com/quotes/author/ernest-agyemang-yeboah/)

> [For a physicist mathematics is not just a tool by means of which phenomena can be calculated, it is the main source of concepts…](https://sms4smile.com/quotes/freeman-dyson/for-a-physicist-mathematics-is-not-just-a-tool-by-means-of-which/)

[Freeman Dyson](https://sms4smile.com/quotes/author/freeman-dyson/)

> [Geometry, which should only obey Physics, when united with it sometimes commands it. If it happens that the question which we wish to examine…](https://sms4smile.com/quotes/jean-le-rond-d-alembert/geometry-which-should-only-obey-physics-when-united-with-it-sometimes/)

[Jean le Rond d'Alembert](https://sms4smile.com/quotes/author/jean-le-rond-d-alembert/)

> [In school math and science were my favorite subjects, but I probably in my true self I'm more of a people person. At the…](https://sms4smile.com/quotes/emily-deschanel/in-school-math-and-science-were-my-favorite-subjects-but-i-probably/)

[Emily Deschanel](https://sms4smile.com/quotes/author/emily-deschanel/)

> [“How in the world did I ever find you?” Mackenzie Winters “Math class.” Brandon Knight”](https://sms4smile.com/quotes/bella-jeanisse/how-in-the-world-did-i-ever-find-you-mackenzie-winters-math-class/)

[Bella Jeanisse](https://sms4smile.com/quotes/author/bella-jeanisse/)

> [“One is the notion that knowledge is worth acquiring, all knowledge, and that a solid grounding in mathematics provides one with the essential language…](https://sms4smile.com/quotes/william-h-patterson-jr/one-is-the-notion-that-knowledge-is-worth-acquiring-all-knowledge-and/)

[William H. Patterson Jr](https://sms4smile.com/quotes/author/william-h-patterson-jr/)

> [The mathematical facts worthy of being studied are those which, by their analogy with other facts, are capable of leading us to the knowledge…](https://sms4smile.com/quotes/henri-poincare/the-mathematical-facts-worthy-of-being-studied-are-those-which-by/)

[Henri Poincare](https://sms4smile.com/quotes/author/henri-poincare/)

> [“When one day Lagrange took out of his pocket a paper which he read at the Académe, and which contained a demonstration of the…](https://sms4smile.com/quotes/jean-baptiste-biot/when-one-day-lagrange-took-out-of-his-pocket-a-paper-which-he-read-at/)

Jean-Baptiste Biot

> [“We are not told, or not told early enough so that it sinks in, that mathematics is a language, and that we can learn…](https://sms4smile.com/quotes/mortimer-j-adler/we-are-not-told-or-not-told-early-enough-so-that-it-sinks-in-that/)

[Mortimer J. Adler](https://sms4smile.com/quotes/author/mortimer-j-adler/)

[Browse all 5,382 Mathematics quotes ](https://sms4smile.com/quotes/about/mathematics/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "“The Lucas-Lehmer primality test also uses a recursive function to produce a sequence of numbers (the Lucas-Lehmer sequence). This sequence starts with 4, and each number after that is the previous number squared, minus 2 (see below). For any Mersenne number (such as 2^3 - 1 = 7 and 2 ^ 8 - 1 = 255), you take its power of 2 ( so, 3 and 8 in our examples) and, if the Lucas-Lehmer number in the position one less than that power ( so, second and seventh) is an exact multiple ( no remainders allowed) of the Mersenne number, then it is definitely prime.”",
            "creator": {
                "@type": "Person",
                "name": "Matt Parker"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/matt-parker/the-lucas-lehmer-primality-test-also-uses-a-recursive-function-to/",
            "about": {
                "@type": "Thing",
                "name": "Mathematics"
            },
            "@id": "https://sms4smile.com/quotes/matt-parker/the-lucas-lehmer-primality-test-also-uses-a-recursive-function-to/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/d25/matt-parker-16629_mathematics_the-lucas-lehmer-primality-test-also-use_2628157.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/d25/matt-parker-16629_mathematics_the-lucas-lehmer-primality-test-also-use_2628157.jpg",
                "url": "https://sms4smile.com/quotes/i/d25/matt-parker-16629_mathematics_the-lucas-lehmer-primality-test-also-use_2628157.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“The Lucas-Lehmer primality test also uses a recursive function to produce a sequence of numbers (the…” — Matt Parker",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Matt Parker",
                    "item": "https://sms4smile.com/quotes/author/matt-parker/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "“The Lucas-Lehmer primality test also uses...",
                    "item": "https://sms4smile.com/quotes/matt-parker/the-lucas-lehmer-primality-test-also-uses-a-recursive-function-to/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/matt-parker/the-lucas-lehmer-primality-test-also-uses-a-recursive-function-to/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
