New Issue: Orbital Catastrophe Ahead? Read Now

How to ‘Catch’ Prime Numbers

A prime number study charts the limits of detection

Illustration of 3D numbers forming a path for a person to walk thorugh

Thomas Fuchs

Prime numbers have captivated mathematicians for centuries with their unpredictable and seemingly random distribution. In a groundbreaking preprint study, researchers devised a novel method that bolsters our hunt for the cagey values—but also reveals limits to our ability to detect them.

Prime numbers are divisible only by 1 and themselves. They serve as the “atoms” of mathematics, capable of decomposing other numbers into factors (like 12 = 2 × 2 × 3). As numbers increase, identifying primes becomes more and more challenging. If you were asked, “How many primes are there between 1 and 1,000?” where would you begin?

The classical Sieve of Eratosthenes offers a starting point. This ancient technique systematically eliminates multiples of each prime, allowing only the primes themselves to “fall out.” Mathematicians refer to the eliminated multiples as “Type I information,” which can help predict how many primes are in a given range. Yet this information is limited. “Sometimes you have as good Type I information as you can possibly hope for, but you still can’t find any primes,” explains study co-author Kevin Ford, a mathematician at the University of Illinois at Urbana-Champaign.


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.


Ford and University of Oxford mathematician James Maynard provide a powerful method for studying prime numbers in large ranges by precisely estimating the number of primes that must exist within them. The work combines two complementary perspectives: the Type I information of eliminated numbers (like crossing off all multiples of 2, then 3, and so on) as well as accounting for numbers that get crossed off multiple times (like how 6 appears on the lists of multiples both of 2 and of 3)—called Type II information.

Mathematicians can adjust how they weigh each type of information to get the most accurate possible count of primes in a given range. But in carefully tuning these two knobs, the paper’s authors discovered there are fundamental limits: precise mathematical boundaries where no further adjustment can improve our count’s accuracy, revealing deep truths about how these numbers are distributed across the number line.

The study likens the accuracy of these estimations for a set, or “strength of information,” to changing the size of the mesh in a sieve: too small, and you’ll catch every number; too big, and the primes will slip through. The work “answers precisely and directly what is ‘sufficiently good’ information to detect primes,” says mathematician Kaisa Matomäki, who studies the distribution of primes at the University of Turku in Finland. Understanding the limits when designing a sieve is crucial for developing a complete theory of prime numbers, adds Princeton University mathematician Peter Sarnak, an expert in prime sieve theory: “Uncovering what one cannot achieve is fundamental.”

Ford hopes this method will help researchers attack long-standing open problems. “Primes are distributed in a very, very, mysterious [way], so we’re trying to push our understanding just a little bit.”

Max Springer is a Ph.D. candidate in applied mathematics at the University of Maryland and was a 2024 AAAS Mass Media Fellow at Scientific American.

More by Max Springer
Scientific American Magazine Vol 332 Issue 2This article was published with the title “Prime Detective” in Scientific American Magazine Vol. 332 No. 2 (), p. 15
doi:10.1038/scientificamerican022025-1vuGutXDqHQZR7cprrgEyC

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