Right-Truncatable Prime Calculator
Primes
- A right-truncatable prime stays prime as its digits are cut one at a time from the right, down to a single digit; primality here is proven by trial division up to the square root.
- The truncation chain of 1,000 is 1,000 -> 100 -> 10 -> 1.
- Some link of the chain is composite, so the number does not qualify.
- The family is finite and completely known: there are exactly 83 right-truncatable primes, and the largest is 73,939,133.
A right-truncatable prime stays prime as its digits are removed one at a time from the right, down to a single digit. This calculator checks any number you enter against that rule and shows you the full truncation chain, so you can see each step where the remaining digits are tested for primality. It also reports the answer to the question most people ask first: there are exactly 83 right-truncatable primes in base 10. The family is finite and completely known, so the list does not go on forever. The largest is 73,939,133, whose truncation chain runs through 8 primes. 27 of the 83 lie at or below 1,000, the largest of those being 797. A small example shows how the test works: 233 is right-truncatable because its chain is 233, 23, 2, all prime.
The method behind the calculator is the accepted standard for this kind of calculation because it follows the definition directly: remove the rightmost digit, test what remains, and repeat until a single digit is left. Every link in the chain must be prime, so a single failure ends the check. That is the same rule used to establish the complete count of 83 and the largest example, 73,939,133. This page shows the formula, the step-by-step workings, worked examples and the sources behind the numbers, so you can follow each stage yourself rather than take a result on trust. Whether you are testing one number or exploring the whole finite family, the page gives you the count, the chain and the reasoning in one place.
Worked examples
count up to 1,000
(count up to a limit · 1000)
| right-truncatable primes up to 1,000 | 27 |
| largest in range | 797 |
| total in existence (all sizes) | 83 |
| largest in existence | 73,939,133 |
check 73939133
(check a value · 73939133)
| is 73,939,133 right-truncatable? | Yes |
| truncation chain length | 8 |
| largest right-truncatable prime (of all 83) | 73,939,133 |
| total right-truncatable primes in existence | 83 |
check 233
(check a value · 233)
| is 233 right-truncatable? | Yes |
| truncation chain length | 3 |
| largest right-truncatable prime (of all 83) | 73,939,133 |
| total right-truncatable primes in existence | 83 |
What is a right-truncatable prime?
A right-truncatable prime is a prime number that stays prime as you remove its digits one at a time from the right, all the way down to a single digit. Every step of that process has to land on a prime. If even one intermediate number turns out to be composite, the original number does not qualify. The whole sequence of numbers produced by peeling off digits is called the truncation chain, and for a right-truncatable prime every link in that chain is prime.
A small example makes the rule concrete. Take 233. Removing the last digit gives 23, and removing the last digit of 23 gives 2. So the chain is 233, 23, 2, and all three numbers are prime. That makes 233 a right-truncatable prime. Now take the largest one known in base 10: 73,939,133. Its truncation chain runs through 8 primes, each formed by dropping the rightmost digit of the one before it, and it ends at a single digit. Because every step survives, 73,939,133 earns the title of the largest right-truncatable prime.
The family is small and fully mapped out. There are exactly 83 right-truncatable primes in base 10, and the list is finite and completely known. No one is still searching for a bigger one, because the set is closed. Of those 83, a total of 27 lie at or below 1,000, and the largest of that low group is 797. The rest climb higher, but the count never grows beyond 83.
This finiteness follows from how the digits build up. A right-truncatable prime can only be extended to the right by appending a digit that keeps the new number prime, and those extensions dry up. The result is a bounded tree of numbers rather than an endless supply. That is why a calculator for a right-truncatable prime can check any candidate quickly: it only needs to test each shortened number in turn and confirm that none of them is composite.
To test a number yourself, strip digits from the right one at a time and check each result for primality. If the chain reaches a single digit with every entry prime, the number is right-truncatable. If any entry is composite, it is not.
- 233 → 23 → 2: all prime, so 233 is right-truncatable.
- 73,939,133: the largest right-truncatable prime, with a chain of 8 primes.
- Exactly 83 right-truncatable primes exist in base 10; the family is finite and completely known.
- 27 of the 83 are at or below 1,000, the largest of those being 797.
Why there are only 83
The count of 83 is not a coincidence or a limit of computing power. It comes from the way right-truncatable primes are built, one digit at a time, and from how quickly the possible branches run out. The argument is a tree: start from the single-digit primes, then ask which digits can be appended on the right so that the new number is still prime.
The first step is generous. Any single-digit prime can begin a right-truncatable prime, and there are four of them: 2, 3, 5 and 7. But from the second digit onward, the rules tighten sharply. A multi-digit number can only be prime if its last digit is 1, 3, 7 or 9, because a final digit of 2, 4, 5, 6, 8 or 0 would make the number divisible by 2 or 5. So after the first digit, every append is drawn from just those four odd, non-five digits. Each existing branch can spawn at most four children, and most of those children fail the primality test and die immediately.
This is why the tree stays small. A branch survives only if the extended number is prime, and the survivors thin out fast as the numbers grow. Many branches end after a few digits, and the complete enumeration simply runs out of live branches. That exhaustive search is what produces the exact total: there are exactly 83 right-truncatable primes in base 10, and the family is finite and completely known. The largest is 73,939,133, whose truncation chain runs through 8 primes before reaching a single digit.
The same tree explains the smaller facts on this page. Because low branches are the easiest to keep alive, 27 of the 83 lie at or below 1,000, the largest of those being 797. A short example shows the mechanism: 233 is right-truncatable, since its chain is 233, 23, 2, all prime. Each step in that chain is a parent in the tree, and the next digit was one of the four allowed endings that happened to keep the number prime.
So the answer to why there are only 83 is structural, not arbitrary. Four starting primes, at most four possible endings per step, and a primality filter that kills most extensions give a tree that is broad near the bottom and empty at the top. The right-truncatable prime family ends where the last live branch does, at 73,939,133.
The family by size
A right-truncatable prime stays prime as its digits are removed one at a time from the right, down to a single digit. That rule splits the family into two natural views: the small primes at or below 1,000, and the full list that runs all the way to the end of the family. Counting both views is a quick way to see how the right-truncatable prime family is built — a small cluster of short chains near the bottom, and a long, thin tail above them.
Up to 1,000, there are 27 right-truncatable primes. The largest of these is 797: drop the 7 and you get 79, drop the 9 and you get 7, and all three numbers are prime. The other 26 in this view are shorter or smaller chains, but they follow the same rule — every step down to a single digit must land on a prime. Because a chain can only continue while each shorter prefix stays prime, the small view is where most of the family's short chains live.
Across all of base 10, there are exactly 83 right-truncatable primes. The family is finite and completely known, so 83 is the final count, not an estimate or a lower bound. The largest right-truncatable prime is 73,939,133, and its truncation chain runs through 8 primes. That single number shows how far a chain can stretch: each removal from the right has to leave a prime behind, eight times in a row.
Put the two views side by side and the shape of the family is clear. The 27 primes at or below 1,000 are a little under a third of the total, and the remaining 56 sit above 1,000, climbing toward the record holder 73,939,133. The counts below are drawn from the known family; nothing here is projected or sampled.
A short example shows the rule in action. 233 is right-truncatable: its chain is 233, 23, 2, all prime. Each removal from the right produces a smaller prime, and the chain ends at a single digit, exactly as the definition requires.
| View | Count | Largest in view |
|---|---|---|
| At or below 1,000 | 27 | 797 |
| All right-truncatable primes in base 10 | 83 | 73,939,133 |
Right vs left truncatable primes
Truncation can run in either direction, and the two directions produce very different families. A right-truncatable prime stays prime as its digits are removed one at a time from the right, down to a single digit. A left-truncatable prime does the same thing from the other side: you strip digits off the left, and every shorter number that remains is still prime. Each rule sounds like a mirror image of the other, but the sizes of the resulting families are nowhere near equal.
The left family is far larger. Left-truncatable primes number in the thousands, and the largest member of that family has 24 digits. The right family, by contrast, is small and completely settled: there are exactly 83 right-truncatable primes in base 10, and the family is finite and fully known. The largest right-truncatable prime is 73,939,133, whose truncation chain runs through 8 primes. So the entire right family fits in a short list, while the left family runs to 24-digit members.
Because one family is so much bigger than the other, the numbers that survive both tests are rare. A prime that is right-truncatable and left-truncatable at once must keep producing primes no matter which end you trim from, and very few numbers manage that. The two-sided intersection is small. This calculator covers the right family only: it checks whether a number stays prime as digits come off the right, and it will not tell you anything about left truncation.
Small cases show how the rule works. 233 is right-truncatable: its chain is 233, 23, 2, all prime. Remove the final 3 and you get 23, which is prime; remove the 3 from 23 and you get 2, which is prime. The chain ends at a single digit, as every valid chain must. The 83 members of the family are spread across the number line, but they thin out quickly: 27 of the 83 lie at or below 1,000, the largest of those being 797. Above that point the remaining members grow longer and sparser, ending at 73,939,133 and its chain of 8 primes.
- Right-truncatable: digits are removed from the right; the number stays prime at every step down to one digit.
- Left-truncatable: digits are removed from the left; that family is much larger, with thousands of members and a largest member of 24 digits.
- The right family has exactly 83 members in base 10 and is finite and completely known.
- 27 of the 83 right-truncatable primes are at or below 1,000; the largest of those is 797.
- The largest right-truncatable prime is 73,939,133, with a truncation chain of 8 primes.
FAQs
How many right-truncatable primes are there?
There are exactly 83 right-truncatable primes in base 10. The family is finite and has been fully enumerated, so the list is complete rather than open-ended. Every right-truncatable prime in base 10 is among those 83 values, and no further ones exist beyond them.
What is the largest right-truncatable prime?
The largest right-truncatable prime is 73,939,133. Its truncation chain contains 8 primes, meaning that removing digits from the right one at a time keeps producing a prime at every step until a single digit remains. Because the family is finite, no larger right-truncatable prime exists in base 10.
Is 233 a right-truncatable prime?
Yes, 233 is a right-truncatable prime. Truncating from the right gives 233, then 23, then 2, and all three numbers are prime. Since every step of the chain stays prime, 233 satisfies the definition of a right-truncatable prime.
How many right-truncatable primes are below 1,000?
There are 27 right-truncatable primes below 1,000. The largest of these is 797. That count covers every right-truncatable prime smaller than 1,000, so any right-truncatable prime under that limit appears among those 27 values.
Why can digits only be appended from 1, 3, 7, 9?
Any other final digit would make the number divisible by 2 or 5. A prime with more than one digit must therefore end in 1, 3, 7 or 9. That is why building a right-truncatable prime works by appending only those digits to the right of an existing prime.
Is 797 a right-truncatable prime?
Yes, 797 is a right-truncatable prime. Truncating from the right gives 797, then 79, then 7, and all three are prime. It is also the largest right-truncatable prime below 1,000, so no larger right-truncatable prime exists under that limit.