permutable prime

if each possible permutation of the digits still represents a prime number in that base, then p is said to be a permutable prime. For example, in base 10, the prime 337 is a permutable prime since 373 and 733 are also prime. The known base 10 permutable primes are listed in A003459 of Sloane’s OEIS.

If we define πP⁢(n) to count how many permutable primes there are below n, it is obvious that πP⁢(b-1)=π⁢(b-1), where π⁢(n) is the standard prime counting function.

When 2|b, a search for permutable primes can safely exclude any primes whose base b representation includes digits that are individually even. In a trivial sense, all repunit primes are also permutable primes. This means that in binary, the only permutable primes are repunits (that is, the Mersenne primes). Richert proved in 1951 that in the range 991<p<10175 the only base 10 permutable primes are repunit primes; it is conjectured that this is also true above that range.