Mathematicians Come Up with ‘Mind-Blowing’ Method for Defining Prime Numbers

Using a notion called integer partitions, mathematicians have discovered a new way to detect prime numbers while also connecting two areas of math in an unexpected way

White and gray numbers shown on a dark blue background.

Robert Brook/Science Photo Library/Getty Images

For centuries prime numbers have captured the imaginations of mathematicians, who continue to search for new patterns that help them identify primes and the way they are distributed among other numbers. Primes are whole numbers that are greater than 1 and are divisible by only 1 and themselves. The three smallest prime numbers are 2, 3 and 5. It’s easy to find out whether small numbers are prime—one simply needs to check what numbers can factor them. When mathematicians consider large numbers, however, the task of discerning which ones are prime quickly mushrooms in difficulty. It might be practical to see whether a number such as 10 or 1,000 has more than two factors, but that strategy will be unfavorable or maybe even untenable for finding out whether gigantic numbers are prime or composite. For instance, the largest known prime number, which is 2136,279,841 − 1, is 41,024,320 digits long. At first that may seem mind-bogglingly large. Given that there are infinitely many positive integers of all different sizes, however, this number is minuscule compared with even larger primes.

Furthermore, mathematicians want to do more than just tediously attempt to factor numbers one by one to determine whether any given integer is prime. “We’re interested in the prime numbers because there are infinitely many of them, but it’s very difficult to identify any patterns in them,” says Ken Ono, a mathematician at the University of Virginia. Still, one main goal is to determine how prime numbers are distributed within larger sets of numbers.

Ono and two of his colleagues—mathematicians William Craig of the U.S. Naval Academy and Jan-Willem van Ittersum of the University of Amsterdam—identified an entirely new approach for finding prime numbers. “We have described infinitely many new kinds of criteria for exactly determining the set of prime numbers, all of which are very different from ‘If you can’t factor it, it must be prime,’ ” Ono says. His and his colleagues’ paper, published in September 2024 in the Proceedings of the National Academy of Sciences USA, was runner-up for a physical science prize that recognizes scientific excellence and originality. In some sense, the finding offers an infinite number of new definitions for what it means for numbers to be prime, Ono notes.


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.


At the heart of the team’s strategy is a notion called integer partitions. “The theory of partitions is very old,” Ono says. It dates back to 18th-century Swiss mathematician Leonhard Euler, and it has continued to be expanded and refined by mathematicians over time. “Partitions, at first glance, seem to be the stuff of child’s play,” Ono says. “How many ways can you add up numbers to get other numbers?” For instance, the number 5 has seven partitions: 4 + 1, 3 + 2, 3 + 1 + 1, 2 + 2 + 1, 2 + 1 + 1 + 1 and 1 + 1 + 1 + 1 + 1.

Yet the concept turns out to be powerful as a hidden key that unlocks new ways of detecting primes. “It is remarkable that such a classical combinatorial object—the partition function—can be used to detect primes in this novel way,” says Kathrin Bringmann, a mathematician at the University of Cologne in Germany. (Bringmann has worked with Ono and Craig before, and she was van Ittersum’s postdoctoral adviser but wasn’t involved with this research.) Ono notes that the idea for this approach originated in a question posed by one of his former students, Robert Schneider, who’s now a mathematician at Michigan Technological University.

Ono, Craig and van Ittersum proved that prime numbers are the solutions of an infinite number of a particular type of polynomial equation in partition functions. Called Diophantine equations, after third-century mathematician Diophantus of Alexandria (though studied long before him), these expressions can have integer solutions or rational ones (meaning they can be written as a fraction). In other words, the finding shows that “integer partitions detect the primes in infinitely many natural ways,” the researchers write in their PNAS paper.

George E. Andrews, a mathematician at Pennsylvania State University, who edited the PNAS paper but wasn’t involved with the research, describes the finding as “something that’s brand new” and “not something that was anticipated,” which makes it difficult to predict “where it will lead.”

The discovery goes beyond probing the distribution of prime numbers. “We’re actually nailing all the prime numbers on the nose,” Ono says. With this method, you can plug an integer that is equal to or larger than 2 into particular equations, and if they are true, then the integer is prime. One such equation is (3n3 − 13n2 + 18n − 8)M1(n) + (12n2 −120n + 212)M2(n) − 960M3(n) = 0, where M1(n), M2(n) and M3(n) are well-studied partition functions. “More generally,” for a particular type of partition function, “we prove that there are infinitely many such prime detecting equations with constant coefficients,” the researchers write in their PNAS paper. Put more simply, “it’s almost like our work gives you infinitely many new definitions for prime,” Ono says. “That’s kind of mind-blowing.”

The team’s findings could lead to many new discoveries, Bringmann notes. “Beyond its intrinsic mathematical interest, this work may inspire further investigations into the surprising algebraic or analytic properties hidden in combinatorial functions,” she says. In combinatorics—the mathematics of counting—combinatorial functions are used to describe the number of ways that items in sets can be chosen or arranged. “More broadly, it shows the richness of connections in mathematics,” she adds. “These kinds of results often stimulate fresh thinking across subfields.”

Bringmann suggests some potential ways that mathematicians could build on the research. For instance, they could explore what other types of mathematical structures could be found with partition functions or look for ways that the main result could be expanded to study different types of numbers. “Are there generalizations of the main result to other sequences, such as composite numbers or values of arithmetic functions?” she asks.

“Ken Ono is, in my opinion, one of the most exciting mathematicians around today,” Andrews says. “This isn’t the first time that he has seen into a classic problem and brought really new things to light.”

There remains a glut of open questions about prime numbers, many of which are long-standing. Two examples are the twin prime conjecture and Goldbach’s conjecture. The twin prime conjecture states that there are infinitely many twin primes—prime numbers that are separated by a value of two. The numbers 5 and 7 are twin primes, as are 11 and 13. Goldbach’s conjecture states that “every even number bigger than 2 is a sum of two primes in at least one way,” Ono says. But no one has proved this conjecture true.

“Problems like that have befuddled mathematicians and number theorists for generations, almost throughout the entire history of number theory,” Ono says. Although his team’s finding doesn’t solve those problems, he says, it is a profound example of the ways mathematicians are pushing boundaries in order to better understand the mysterious nature of prime numbers.

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