The strange story of an almost unknown prime number counter: The Rafael Barrett formula

This brief article presents and analyzes Rafael Barrett's 1903 formula for counting prime numbers, which remained obscure until its rediscovery and publication in Montevideo in 1935.

Original authors: Eduardo Mizraji

Published 2026-04-08✓ Author reviewed
📖 4 min read🧠 Deep dive

This is an AI-generated explanation of the paper below. It is not written by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you've just stumbled upon a secret recipe for counting prime numbers, but the chef who wrote it down was actually a famous essayist, not a mathematician. That's the heart of this paper.

Here is the story of the "Rafael Barrett Formula," explained simply:

1. The Unlikely Chef: Rafael Barrett

First, let's meet the man behind the math. Rafael Barrett wasn't a professor in a lab coat; he was a writer and essayist, a "man of letters" with a golden pen. Born in Spain but living in South America (mostly Paraguay and Uruguay), he was deeply moved by the poverty and tragedy of the Paraguayan people. He wrote beautifully about politics and life.

But hidden in his past was a secret hobby: he loved math. In 1903, he wrote a letter to Henri Poincaré, one of the most famous mathematicians in the world at the time. In this letter, Barrett didn't just ask a question; he handed over a mathematical machine he had built to count prime numbers.

2. The Lost Treasure

For decades, this letter sat in the shadows, unknown to the world. It wasn't until the 1930s that a Uruguayan mathematician named Eduardo García de Zúñiga (think of him as the "grandfather" of math in Uruguay) found it. He realized that Barrett had created a formula that could count how many prime numbers exist below any given number.

García de Zúñiga published Barrett's work in 1935, bringing this "lost treasure" to light.

3. The Magic Machine (The Formula)

So, what does Barrett's machine do?

Imagine you have a giant jar of marbles, and you want to count only the "special" ones (the prime numbers: 2, 3, 5, 7, 11, etc.).

  • If you ask the machine, "How many special marbles are there up to number 10?" it says 5.
  • If you ask, "Up to number 13?" it says 6.

Barrett's formula is a complex-looking equation involving factorials (multiplying numbers like 1×2×3...) and sine waves (the wiggly lines you see in sound waves). It sounds like gibberish, but it works like a perfect filter. It uses a famous rule called Wilson's Theorem (which is like a secret handshake that only prime numbers know) to filter out the non-primes and count the real ones.

The paper shows that if you plug in a number, the formula spits out the exact count of primes below it. It's a "prime number counter" that works perfectly, even though it looks incredibly complicated.

4. The Big Mystery: The "Speed Limit" of Math

Here is where the story gets interesting.

Mathematicians have known for a long time that as you count higher and higher, the "density" of prime numbers follows a smooth, predictable curve (called the Prime Number Theorem). It's like knowing that if you drive far enough, the average speed of cars on the highway settles into a specific pattern.

The paper asks a fascinating question: Can we use Barrett's complicated, wiggly machine to figure out that smooth, predictable pattern?

It's like asking: "If I have a very complex, noisy engine (Barrett's formula), can I tune it just right to hear the perfect, smooth hum of the universe (the Prime Number Theorem)?"

The author suggests that while Barrett's formula implies this smooth pattern exists, actually getting from the messy formula to the clean answer might be impossible without a clever trick or a "heuristic" (a smart guess). The paper ends by challenging readers: Can anyone find a clever shortcut to turn Barrett's complex machine into the simple, elegant truth of the Prime Number Theorem?

Summary

  • The Hero: A famous essayist named Rafael Barrett who secretly invented a math formula.
  • The Discovery: The formula was lost for 30 years until a mathematician found it in a letter to a legend.
  • The Tool: A complex equation that counts prime numbers perfectly using a "secret handshake" rule.
  • The Challenge: Can we use this complex tool to easily prove the big, smooth rule that governs how prime numbers are distributed?

It's a story about how math and literature can collide, and how a single letter from a writer might hold a key to one of the universe's deepest secrets.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →