How to Memorize the Largest Known Prime

It may seem daunting to memorize a 24-million-digit number, but with these tips you'll be well on your way

This article was published in Scientific American’s former blog network and reflects the views of the author, not necessarily those of Scientific American


A few weeks ago, a computer owned by Patrick Laroche of Ocala, Florida discovered a mathematical treasure, a new largest known prime number. Known as M82589933, it has 24,862,048 decimal digits. If you’d like to read more about it, check out this article I wrote for Slate two years ago (and updated a year ago). Though I did not write that article about this particular largest known prime number, I did write it about a previous largest known prime numbers, and M82589933 is yet another verse of the same song.

Today, I want to help you experience this new prime number viscerally by memorizing it.

I don’t know about you, but there’s no way I’m memorizing a 24,862,048-digit number. Instead, I’m going to memorize an easier 82,589,933-digit number using the magic of binary. The newest prime is a Mersenne prime, meaning it is one less than a power of two. In binary, numbers are written using only the digits 0 and 1. One is 1, two is 10, three is 11, four is 100, five is 101, and so on. Any power of two is a 1 followed by some number of zeroes. We saw that two is 10 and four is 100. The pattern continues: eight is 1000, sixteen is 10000, and so on. In base ten, if you subtract 1 from a 1 followed by a bunch of zeroes, you get a bunch of nines. (E.g. 1,000-1=999.) In base two, 1000-1=111. Any number one less than a power of two is a string of 1’s.


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


The new prime number is 282,589,933-1. In binary, that is a string of 82,589,933 ones. Easy peasy. The difficult part of memorizing it is keeping track of how many ones there are. Buckle up because I have some ideas for that, too.

In the first place, we do need to memorize the number of binary digits this number has. That’s 82,589,933. Try this handy phrase: “Cabbages in April besmirch September asparagus. And how!” The number of letters in the word correspond to the digits of the number, and it’s easy to remember because April cabbages are indeed better than September asparagus (in the northern hemisphere).

Now that we’ve memorized the number of digits, it would be nice to find a way to keep track of where we are in the digits as we start writing or reciting ones. The word TWENTY NINE is made from 29 straight line segments. Thus, it is an elaborate way to write the number 29 in tally marks. I decided to expand on the idea. First, I looked for famous poems or phrases that use no round capital letters. The Declaration of Independence, the Gettysburg Address, “The Waste Land,” and “The Jabberwocky” all disappointed me immediately. It was clear: I had to create my own. The following is a poem I wrote to help you get through it all. When written in capital letters, the poem uses 500 straight line segments (punctuation is not included).

Amenity twenty nine:
Lie lazily,
a fizzy affinity
familial, alien
with hymnlike alkalinity.
We twelve examine finality.
The lake,
a wink,
an inky inlet.

Exit we the fiftieth line,
Tie a tiny thymey tine.

Waltzlike I talk.
Timelike we walk.

If you wish to write the new prime number, you can write this poem in block letters 165,179 times--each straight line segment is a number 1--and then add 433 more ones. Alternatively, if you wish to recite the number, you can write the poem down 165,179 times while saying the word "one" with every stroke and then say "one" 433 more times.

Some challenges still remain in memorizing M82589933. How do you keep track of how many times you have written the poem? Do you get to take bathroom breaks while you demonstrate that you have memorized the new prime number? What happens if a larger prime is discovered while you are still in the middle of writing this one down? I am confident you will find innovative ways to tackle these challenges and revel in the full splendor of M82589933.

Subscribe to Support Independent Journalism

Great science journalism requires human expertise, time, effort and creativity. And it costs money. That’s why I and the journalists here at Scientific American hope you’ll join our community.

When you subscribe, you are supporting staff and freelance journalists who are passionate about telling science stories that are true, important and compelling. Our editors and reporters are often experts in their fields, which means they understand the nuances of big discoveries and can untangle the breakthroughs from the hype. With a subscription, you are also supporting rigorous fact-checking to ensure the words we publish are precise and accurate. And you’re supporting original illustrations, graphics and photos that bring you closer to an advanced laboratory, an ice sheet in Antarctica or a space mission in orbit. You’re helping us craft other types of high-quality journalism as well: Our newsletters are carefully written, edited and curated by staffers you have or will come to know and love. Our Science Quickly podcast is based on original reporting, collaboration with editors and scientists and exacting production.

Subscriptions keep this engine running so we can continue to deliver thoughtful, rigorous and independent science journalism to you. In an era of viral misinformation, this work is crucial. If you value what we do, I hope you’ll consider joining us as a subscriber

Thank you,

Jeanna Bryner, Editor in Chief, Scientific American

Subscribe