Riesel Number Prime Search Calculator

Number Theory

First prime exponentn = 10
Prime found (k x 2^n - 1)103,423
Exponents tested10
Largest value tested108,447,924,223
How this was calculated
  1. A Riesel number is an odd k for which k x 2^n - 1 is composite for every n. This search tests k = 101 for n = 1 to 30, looking for the first prime of the form k x 2^n - 1.
  2. The candidates start at 201 for n = 1 and double the power of two each step. Each candidate is tested by trial division.
  3. The first prime found is at n = 10, giving 101 x 2^10 - 1 = 103,423.
  4. Finding a prime proves k is not a Riesel number. Finding none in range proves nothing by itself: the smallest proven Riesel number is 509,203, shown composite for all n using a covering set of primes (3, 5, 7, 13, 19, 37, 73).

In 1956 the Swedish mathematician Hans Riesel pointed at a stubborn family of numbers: odd values of k for which k x 2^n - 1 is composite for every positive exponent n. Such a k is now called a Riesel number, and the smallest proven one is 509,203. Whether certain smaller k qualify is, remarkably, still unknown.

This calculator runs the search side of the problem. Give it an odd k and it tests n = 1, 2, 3, ... up to 30, reporting the first exponent that makes k x 2^n - 1 prime - or reporting that none exists in range, which flags k as a candidate worth deeper attention.

Finding a prime settles k forever: it is not a Riesel number. Finding none settles nothing, and the asymmetry between those two outcomes is the whole drama of this corner of number theory.

Worked examples

k = 101

(101 · 30)

First prime exponentn = 10
Prime found (k x 2^n - 1)103,423
Exponents tested10
Largest value tested108,447,924,223

k = 13

(13 · 30)

First prime exponentn = 3
Prime found (k x 2^n - 1)103
Exponents tested3
Largest value tested13,958,643,711

k = 191 - no prime in range

(191 · 30)

First prime exponentNo prime up to n = 30
Prime found (k x 2^n - 1)None
Exponents tested30
Largest value tested205,084,688,383

The Riesel problem

Riesel showed that infinitely many such k should exist, and produced the proof technique - covering sets - that certifies them. The hunt ever since has been about the small end: which odd k below 509,203 are Riesel numbers, and which merely hide their first prime at some enormous exponent?

Distributed computing projects have spent decades on the question, eliminating candidate after candidate by finding a prime at ever-larger n. The k values that survive are those for which either a covering set exists or the first prime is astronomically far out.

Covering sets explained

A covering set is a small set of primes with a magical property: for every exponent n, at least one prime in the set divides k x 2^n - 1. The classic set {3, 5, 7, 13, 19, 37, 73} works because the powers of 2 cycle modulo each of these primes with periods that together cover every residue class of n.

With such a set in hand, compositeness for all n is proved in one stroke - provided k x 2^n - 1 is also larger than the covering prime doing the dividing, which holds once n is not tiny. The smallest proven Riesel number, 509,203, is certified exactly this way.

Searching versus proving

The two directions of the problem have wildly different costs. Disproving Riesel status takes one prime: for k = 101, this calculator finds 101 x 2^10 - 1 = 103,423 prime at n = 10, and k = 101 is finished forever. For k = 13 the answer comes even sooner, at n = 3 with the prime 103.

Proving Riesel status takes the covering set, and no amount of blank searching substitutes. k = 191 returns no prime up to n = 30 on this page - interesting, suggestive, and proof of absolutely nothing. Its first prime might sit at n = 31 or n = 31 million.

Reading the search output

Alongside the first prime, the calculator reports how many exponents were tested and the largest value examined. For a blank search at n = 30 with k = 191, that largest value exceeds 205 billion - a sense of how quickly k x 2^n - 1 outruns trial division as n grows.

Serious searches switch to probable-prime tests and sieving long before this point, testing millions of exponents. The modest range here is chosen so the arithmetic stays exact and the concept stays visible.

The remaining candidates

Below 509,203 there remains a shrinking list of k whose status is open - no prime found despite enormous searches, no covering set known. Projects in the Riesel Prime Search tradition continue to push the search bounds upward, and every so often a candidate falls when a prime finally surfaces at some huge exponent.

Each elimination sharpens the real question: is 509,203 truly the smallest, or does one of the stubborn survivors share its covering-set secret? Nobody knows - which is why a problem stated in one line still employs supercomputers.

Riesel and Sierpinski

The Riesel problem has a mirror twin: the Sierpinski problem asks about k x 2^n + 1 instead of minus 1. The two share covering sets, search infrastructure and much of their folklore, and this site offers the twin calculator alongside this one. Trying the same k in both is a quick way to feel how differently the plus and minus families behave.

How the big searches actually run

Production searches sieve first: for a fixed k, they strike out exponents n for which a small prime provably divides k x 2^n - 1, discarding most candidates cheaply. Survivors face probable-prime tests - Miller-Rabin and Lucas tests in combination - which are fast and, at these sizes, effectively certain. A survivor that passes is then proved prime.

This page's trial division is the same logic at kindergarten scale: correct, transparent, and hopeless beyond small exponents. The concepts, though, are identical at every scale - eliminate cheaply, test the rest, and let one prime settle the question forever.

The k = 509,203 story

Riesel himself identified 509,203 as a Riesel number using his covering set, and it has held the 'smallest proven' title ever since - not because smaller candidates are known to fail, but because every smaller odd k is either eliminated by a found prime or still unresolved.

That limbo is the honest state of the problem: the smallest Riesel number is somewhere in a known finite list, and computation is slowly cornering it. Each eliminated candidate is permanent progress, which is more than most open problems offer.

Trying the neighbours

A revealing exercise is to run a small odd k and its neighbours through the search: 189 falls quickly, 191 survives the page's range, 193 falls. Riesel-ness is not a neighbourhood property - it depends on the exact arithmetic of each k against the covering structures, which is why no pattern-spotting shortcut has ever replaced the searches.

What a blank result is worth

A blank search to n = 30, like the one for k = 191 here, is not worthless - it is a bound. It certifies that if k = 191 hides a prime, the prime exceeds 205 billion, and it cost a fraction of a second to learn. Science advances on such bounds stacked patiently: each generation's trivial search is deeper than the last generation's heroic one.

The professional literature is essentially a tower of these bounds, with the surviving candidates defined by the height of the tower beneath them. Reading a candidate's status is reading the tower's height.

Parity and trivial cases

Only odd k are considered, for a clean reason: if k is even, k x 2^n - 1 is just an odd multiple structure that reduces to the odd case with a shifted exponent, so even k add no new problems. Similarly k = 1 gives the family 2^n - 1, the Mersenne numbers, whose prime hunt is the most famous of all - a reminder that the Riesel form generalizes a classical object.

Small cases calibrate intuition: k = 3 falls at n = 1, where 3 x 2 - 1 = 5 is prime, while k = 5 needs n = 2, since 5 x 2 - 1 = 9 is composite but 5 x 4 - 1 = 19 is prime. Even trivial-looking k can need a second look, which is the search's whole ethos in miniature.

The human infrastructure

Behind the candidate lists stands a volunteer infrastructure - forums coordinating ranges, software maintained across decades, results databases curated by hand. The Riesel and Sierpinski hunts are among the oldest continuous distributed computations in existence, predating the famous prime searches' popular phase.

That infrastructure is why the problem's state can be stated so precisely at any moment: every odd k below the champion is eliminated, proven, or assigned a searched-to bound, with the records public.

FAQs

What is a Riesel number?

An odd number k such that k x 2^n - 1 is composite for every positive integer n.

What is the smallest proven Riesel number?

509,203, certified by a covering set of primes: 3, 5, 7, 13, 19, 37, 73.

For k = 101, where is the first prime?

At n = 10: 101 x 2^10 - 1 = 103,423, which is prime - so 101 is not a Riesel number.

How are Riesel numbers proved?

By exhibiting a covering set: primes such that for every n, one of them divides k x 2^n - 1.

Does no prime up to n = 30 prove k is a Riesel number?

No. It only bounds the search. A proof requires a covering set; the first prime could lie far beyond any searched range.

Why does the calculator only search to n = 30?

The values grow past 200 billion by n = 30, and exact trial division is kept deliberately; serious searches use probable-prime tests to reach millions of exponents.

Is 509,203 the smallest Riesel number?

It is the smallest proven one. Every smaller odd k has either been eliminated by a discovered prime or remains unresolved, so the title is 'smallest proven', not yet 'smallest'.

For which k does the search end fastest?

Many small k fall at n = 1 or 2 - k = 3 gives the prime 5 immediately. The speed of small cases is exactly what makes the stubborn candidates so striking.

Sources

Related calculators

Correlation Coefficient Calculator
Pearson's r for up to six paired observations, with r² and the deviation sums shown — the full workings, not just the headline number.
Logit Calculator
The logit of a probability: the natural log of the odds, the scale on which logistic regression is linear.
Sphere Volume Calculator
Volume and surface area of a sphere from its radius — plus diameter, great-circle circumference and the hemisphere figure.