In recreationalnumber theory, a minimal prime is a prime number for which there is no shorter subsequence of its digits in a given base that form a prime. In base 10 there are exactly 26 minimal primes:
For example, 409 is a minimal prime because there is no prime among the shorter subsequences of the digits: 4, 0, 9, 40, 49, 09. The subsequence does not have to consist of consecutive digits, so 109 is not a minimal prime (because 19 is prime). But it does have to be in the same order; so, for example, 991 is still a minimal prime even though a subset of the digits can form the shorter prime 19 by changing the order.
Similarly, there are exactly 32 composite numbers which have no shorter composite subsequence:
Minimal primes can be generalized to other bases. It can be shown that there are only a finite number of minimal primes in every base. Equivalently, every sufficiently large prime contains a shorter subsequence that forms a prime.
b
minimal primes in base b (written in base b, the letters A, B, C, ... represent values 10, 11, 12, ...)
^This value is only conjectured. For base 17, there are 1279 known minimal (probable) primes and one unsolved family: F1{9}
^This value is only conjectured. For base 19, there are 3462 known minimal (probable) primes and one unsolved family: EE1{6}
^This value is only conjectured. For base 21, there are 2600 known minimal (probable) primes and one unsolved family: G{0}FK
^This value is only conjectured. For base 25, there are 17597 known minimal (probable) primes and twelve unsolved families, but the smallest prime of one of these families (LO{L}8) may or may not be a minimal prime, since another unsolved family is O{L}8
^This value is only conjectured. For base 26, there are 5662 known minimal (probable) primes and two unsolved families: {A}6F and {I}GL
^This value is only conjectured. For base 27, there are 17210 known minimal (probable) primes and five unsolved families
^This value is only conjectured. For base 28, there are 5783 known minimal (probable) primes and one unsolved family: O{A}F
^This value is only conjectured. For base 29, there are 57283 known minimal (probable) primes and fourteen unsolved families, but the smallest prime of one of these families ({F}OPF) may or may not be a minimal prime, since another unsolved family is {F}OP