TOPICS
Search

Truncatable Prime


A truncatable prime is a prime number that remains prime after successive removal of digits from one fixed end of its decimal representation, down to a single digit. A zerofree number n is right truncatable if n and all numbers obtained by successively removing the rightmost digits are prime. There are exactly 83 right truncatable primes in base 10. The first few are 2, 3, 5, 7, 23, 29, 31, 37, 53, 59, 71, 73, 79, 233, 239, 293, 311, 313, 317, 373, 379, 593, 599, ... (OEIS A024770), the largest being the 8-digit number 73939133 (Angell and Godwin 1977). The numbers of n-digit right truncatable primes for n=1, 2, ..., 8 are 4, 9, 14, 16, 15, 12, 8, and 5 (OEIS A050986; Rivera puzzle 70).

Similarly, a zerofree number n is left truncatable if n and all numbers obtained by successively removing the leftmost digit are prime. There are exactly 4260 left truncatable primes in base 10 when the digit zero is not allowed. The first few are 2, 3, 5, 7, 13, 17, 23, 37, 43, 47, 53, 67, 73, 83, 97, 113, 137, 167, 173, ... (OEIS A024785), with the largest being the 24-digit number 357686312646216567629137 (Angell and Godwin 1977). The numbers of n-digit left truncatable primes for n=1, 2, ... 24 are 4, 11, 39, 99, 192, 326, 429, 521, 545, 517, 448, 354, 276, 212, 117, 72, 42, 24, 13, 6, 5, 4, 3, and 1 (OEIS A050987; Rivera puzzle 70).

If zeros are permitted, leading zeros produced by truncation are ignored. The first few left truncatable primes in this convention are 2, 3, 5, 7, 13, 17, 23, 37, 43, 47, 53, 67, 73, 83, 97, 103, 107, 113, 137, 167, 173, 197, 223, 283, 307, ... (OEIS A033664).

The prime numbers having no proper subsequence of their decimal digits that represents another prime number form a finite set explicitly determined by Shallit (1999-2000). Every prime number contains one of these primes as a digit subsequence.

An n-digit zerofree prime p_n (with n>=2) is called a restricted left truncatable prime if

1. If the leftmost digit of p_i is deleted, a prime number p_(i-1) is obtained for 2<=i<=n, and

2. No prime with n+1 digits can have its leftmost digit removed to produce p_n.

Kahan and Weintraub (1998) dub such primes "Henry VIII primes." Restricted left truncatable primes p_n are therefore a subset of left truncatable primes for which there are no left truncatable primes of length n+1 having the same n last digits as p_n. There are a total of 1440 such primes, and the first few are 773, 3373, 3947, 4643, 5113, 6397, 6967, 7937, ... (OEIS A055521), the largest being 357686312646216567629137 (Angell and Godwin 1977, Kahan and Weintraub 1998).

Truncatable primes are also called Russian doll primes.


See also

Circular Prime, Deletable Prime, Prime Array, Prime Number

Explore with Wolfram|Alpha

References

Angell, I. O. and Godwin, H. J. "On Truncatable Primes." Math. Comput. 31, 265-267, 1977. https://doi.org/10.1090/S0025-5718-1977-0427213-2.De Geest, P. "List of the 4260 Left-Truncatable Primes (without the Zero Digit)." https://www.worldofnumbers.com/truncat.htm.Kahan, S. and Weintraub, S. "Left Truncatable Primes." J. Recr. Math. 29, 254-264, 1998.Numberphile. "357686312646216567629137." Jul. 27, 2018. https://www.youtube.com/watch?v=azL5ehbw_24.Rivera, C. "Problems & Puzzles: Puzzle 002-Prime Strings." https://www.primepuzzles.net/puzzles/puzz_002.htm.Rivera, C. "Problems & Puzzles: Puzzle 070-Primes Double Tree (A Puzzle Suggested by Paul Leyland)." https://www.primepuzzles.net/puzzles/puzz_070.htm.Schroeppel, R. Item 33 in Beeler, M.; Gosper, R. W.; and Schroeppel, R. HAKMEM. Cambridge, MA: MIT Artificial Intelligence Laboratory, Memo AIM-239, p. 14, Feb. 1972. https://www.inwap.com/pdp10/hbaker/hakmem/number.html#item33.Shallit, J. "Minimal Primes." J. Recr. Math. 30, 113-117, 1999-2000. https://cs.uwaterloo.ca/~shallit/Papers/minimal5.pdf.Sloane, N. J. A. Sequences A024770, A024785, A032437, A033664, A050986, A050987, and A055521 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Truncatable Prime

Cite this as:

Weisstein, Eric W. "Truncatable Prime." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/TruncatablePrime.html

Subject classifications