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 ("left") 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 ("right") 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 ("left") and last ("right") 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.

In base 10, there are exactly 4260 left-truncatable primes, 83 right-truncatable primes, and 920,720,315 left-and-right-truncatable primes.