homehome Home chatchat Notifications


Primes don't like to repeat themselves: a mathematical conspiracy revealed

Kannan Soundararajan and Robert Lemke Oliver of Stanford University published a paper recently that is leaving mathematicians scratching their heads. Their work exposed a mathematical bias of prime numbers in which a prime repels other would-be primes that end in the same digit. The researchers found some digits are 'preferred' in the detriment of others with various predilections. For instance, a prime ending in 9 is 65 percent likelier to be followed by a prime ending in 1 than one ending in 9.

Tibi Puiu
March 15, 2016 @ 12:18 pm

share Share

Kannan Soundararajan and Robert Lemke Oliver of Stanford University published a paper recently that is leaving mathematicians scratching their heads. Their work exposed a mathematical bias of prime numbers in which a prime repels other would-be primes that end in the same digit. The researchers found some digits are ‘preferred’ in the detriment of others with various predilections. For instance, a prime ending in 9 is 65 percent likelier to be followed by a prime ending in 1 than one ending in 9.

Kannan Soundararajan, left, and Robert Lemke Oliver of Stanford University. Image: Waheeda Khalfan

Kannan Soundararajan, left, and Robert Lemke Oliver of Stanford University. Image: Waheeda Khalfan

“We’ve been studying primes for a long time, and no one spotted this before,” said Andrew Granville, a number theorist at the University of Montreal and University College London. “It’s crazy.”

It’s crazy because it’s one of those things everyone thought was written in stone: primes behave randomly. We should have known better, though, since primes aren’t random and follow a very deterministic path instead.

A prime is any number that’s only divisible by itself and the number one. These are 2, 3, 5, 7, 13 and so on. Twelve is not a prime because it’s divisible by 3 and 2, which are other primes. As you work up the ladder primes become increasingly hard to find. The largest prime found so far is  274,207,281-1 or 2 multiplied by itself more than 74 million times. That’s in the astronomical realm.

Except for the prime numbers 2 and 5, all other primes end in  1, 3, 7 or 9. You’d think that a prime has an equal chance of ending in any of the four, but apparently this is not the case.

Oliver and Soundararajan were inspired to make this research after attending a lecture by  Tadashi Tokieda, of the University of Cambridge. Tokieda mentioned in passing a fun tidbit of coin-tossing: if Alice tosses a coin until she sees a head followed by a tail, and Bob tosses a coin until he sees two heads in a row, then on average, Alice will require four tosses while Bob will require six tosses. This is counter-intuitive because there’s a 50/50 chance any of the two faces showing for any toss. The two mathematicians wondered if any of this spooky action might be found in primes, which are ever mysterious.

The researchers first looked at prime number written in base 3 since it’s a lot easier to spot patterns. In base 3, primes end in either 1 or 2. For primes smaller than 1,000 a prime ending in 1 is more than twice as likely to be followed by a prime ending 2 than another prime ending in 1. The reverse holds true, with primes ending in 2 being much likelier to be followed by those ending in 1. They then looked at the first 400 billion primes and the same predisposition was confirmed. Whether it was base 3, 10 or any other variations, primes seem to have a knack of being followed by another ending in a different digit.

The mathematicians have no explanation yet. It’s not clear either if these ‘random’ behaviour is isolated or tied to other mathematical structures. For sure, others will investigate and who knows what other oddities we’ll learn about primes.

share Share

Ronan the Sea Lion Can Keep a Beat Better Than You Can — and She Might Just Change What We Know About Music and the Brain

A rescued sea lion is shaking up what scientists thought they knew about rhythm and the brain

Did the Ancient Egyptians Paint the Milky Way on Their Coffins?

Tomb art suggests the sky goddess Nut from ancient Egypt might reveal the oldest depiction of our galaxy.

Dinosaurs Were Doing Just Fine Before the Asteroid Hit

New research overturns the idea that dinosaurs were already dying out before the asteroid hit.

Denmark could become the first country to ban deepfakes

Denmark hopes to pass a law prohibiting publishing deepfakes without the subject's consent.

Archaeologists find 2,000-year-old Roman military sandals in Germany with nails for traction

To march legionaries across the vast Roman Empire, solid footwear was required.

Mexico Will Give U.S. More Water to Avert More Tariffs

Droughts due to climate change are making Mexico increasingly water indebted to the USA.

Chinese Student Got Rescued from Mount Fuji—Then Went Back for His Phone and Needed Saving Again

A student was saved two times in four days after ignoring warnings to stay off Mount Fuji.

The perfect pub crawl: mathematicians solve most efficient way to visit all 81,998 bars in South Korea

This is the longest pub crawl ever solved by scientists.

This Film Shaped Like Shark Skin Makes Planes More Aerodynamic and Saves Billions in Fuel

Mimicking shark skin may help aviation shed fuel—and carbon

China Just Made the World's Fastest Transistor and It Is Not Made of Silicon

The new transistor runs 40% faster and uses less power.