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

Join Our Community of Science Lovers!

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.

It’s Time to Stand Up for Science

If you enjoyed this article, I’d like to ask for your support. Scientific American has served as an advocate for science and industry for 180 years, and right now may be the most critical moment in that two-century history.

I’ve been a Scientific American subscriber since I was 12 years old, and it helped shape the way I look at the world. SciAm always educates and delights me, and inspires a sense of awe for our vast, beautiful universe. I hope it does that for you, too.

If you subscribe to Scientific American, you help ensure that our coverage is centered on meaningful research and discovery; that we have the resources to report on the decisions that threaten labs across the U.S.; and that we support both budding and working scientists at a time when the value of science itself too often goes unrecognized.

In return, you get essential news, captivating podcasts, brilliant infographics, can't-miss newsletters, must-watch videos, challenging games, and the science world's best writing and reporting. You can even gift someone a subscription.

There has never been a more important time for us to stand up and show why science matters. I hope you’ll support us in that mission.

Thank you,

David M. Ewalt, Editor in Chief, Scientific American

Subscribe