Truncatable prime


In number theory, a left-truncatable prime is a prime number which, in a given base, contains no 0, and if the leading digit is successively removed, then all resulting numbers are prime. For example, 9137, since 9137, 137, 37 and 7 are all prime. Decimal representation is often assumed and always used in this article.
A right-truncatable prime is a prime which remains prime when the last digit is successively removed. 7393 is an example of a right-truncatable prime, since 7393, 739, 73, and 7 are all prime.
A left-and-right-truncatable prime is a prime which remains prime if the leading and last digits are simultaneously successively removed down to a one or two digit prime. 1825711 is an example of a left-and-right-truncatable prime, since 1825711, 82571, 257, and 5 are all prime.
There are exactly 4260 left-truncatable primes, 83 right-truncatable primes, and 920,720,315 left-and-right-truncatable primes.

History

An author named Leslie E. Card in early volumes of the Journal of Recreational Mathematics considered a topic close to that of right-truncatable primes, calling sequences that by adding digits to the right in sequence to an initial number not necessarily prime snowball primes.
Discussion of the topic dates to at least November 1969 issue of Mathematics Magazine, where truncatable primes were called prime primes by two co-authors.

Lists of truncatable primes

There are 4260 decimal left-truncatable primes:
The largest is the 24-digit 357686312646216567629137.
There are 83 right-truncatable primes. The complete list:
The largest is the 8-digit 73939133. All primes above 5 end with digit 1, 3, 7 or 9, so a right-truncatable prime can only contain those digits after the leading digit.
There are 920,720,315 left-and-right-truncatable primes:
There are 331,780,864 left-and-right-truncatable primes with an odd number of digits. The largest is the 97-digit prime 7228828176786792552781668926755667258635743361825711373791931117197999133917737137399993737111177.
There are 588,939,451 left-and-right-truncatable primes with an even number of digits. The largest is the 104-digit prime 91617596742869619884432721391145374777686825634291523771171391111313737919133977331737137933773713713973.
There are 15 primes which are both left-truncatable and right-truncatable. They have been called two-sided primes. The complete list:
A left-truncatable prime is called restricted if all of its left extensions are composite i.e. there is no other left-truncatable prime of which this prime is the left-truncated "tail". Thus 7937 is a restricted left-truncatable prime because the nine 5-digit numbers ending in 7937 are all composite, whereas 3797 is a left-truncatable prime that is not restricted because 33797 is also prime.
There are 1442 restricted left-truncatable primes:
Similarly, a right-truncatable prime is called restricted if all of its right extensions are composite. There are 27 restricted right-truncatable primes:

Other bases

While the primality of a number does not depend on the numeral system used, truncatable primes are defined only in relation with a given base. A variation involves removing 2 or more decimal digits at a time. This is mathematically equivalent to using base 100 or a larger power of 10, with the restriction that base 10n digits must be at least 10n−1, in order to match a decimal n-digit number with no leading 0.
The left-truncatable primes in base 12 are:
There are 170053 left-truncatable primes in base 12, the largest is the 32-digit 471ᘔ34ᘔ164259Ɛᘔ16Ɛ324ᘔƐ8ᘔ32Ɛ7817.
The right-truncatable primes in base 12 are:
A right-truncatable prime in base 12 can only contain digits after the leading digit. There are 179 right-truncatable primes in base 12, the largest is the 10-digit 375ƐƐ5Ɛ515.

External Links