Permutable prime


A permutable prime, also known as anagrammatic prime, is a prime number which, in a given base, can have its digits' positions switched through any permutation and still be a prime number. H. E. Richert, who is supposedly the first to study these primes, called them permutable primes, but later they were also called absolute primes.
In base 10, all the permutable primes with fewer than 49,081 digits are known
Of the above, there are 16 unique permutation sets, with smallest elements
Note Rn = is a repunit, a number consisting only of n ones. Any repunit prime is a permutable prime with the above definition, but some definitions require at least two distinct digits.
All permutable primes of two or more digits are composed from the digits 1, 3, 7, 9, because no prime number except 2 is even, and no prime number besides 5 is divisible by 5. It is proven that no permutable prime exists which contains three different of the four digits 1, 3, 7, 9, as well as that there exists no permutable prime composed of two or more of each of two digits selected from 1, 3, 7, 9.
There is no n-digit permutable prime for 3 < n < 6·10175 which is not a repunit. It is conjectured that there are no non-repunit permutable primes other than those listed above.
In base 2, only repunits can be permutable primes, because any 0 permuted to the ones place results in an even number. Therefore, the base 2 permutable primes are the Mersenne primes. The generalization can safely be made that for any positional number system, permutable primes with more than one digit can only have digits that are coprime with the radix of the number system. One-digit primes, meaning any prime below the radix, are always trivially permutable.
In base 12, the smallest elements of the unique permutation sets of the permutable primes with fewer than 9,739 digits are known
There is no n-digit permutable prime in base 12 for 4 < n < 12144 which is not a repunit. It is conjectured that there are no non-repunit permutable primes in base 12 other than those listed above.
In base 10 and base 12, every permutable prime is a repunit or a near-repdigit, that is, it is a permutation of the integer
P = xxxx...xxxyb
where x and y are digits which is coprime to b. Besides, x and y must be also coprime, so if x = y, then x = y = 1.
Let P be a permutable prime in base b and let p be a prime such that np. If b is a primitive root of p, and p does not divide x or |x - y|, then n is a multiple of p - 1., xxxx...yxxx...xxxx, xxxx...xxxx mod p are all different. That is, one is 0, another is 1, another is 2,..., the other is p − 1. Thus, since the first p − 1 numbers are all primes, the last number
Thus, if b = 10, the digits coprime to 10 are. Since 10 is a primitive root mod 7, so if n ≥ 7, then either 7 divides x or |xy| or n is a multiple of 7 − 1 = 6. Similarly, since 10 is a primitive root mod 17, so if n ≥ 17, then either 17 divides x or |xy| or n is a multiple of 17 − 1 = 16. Besides, 10 is also a primitive root mod 19, 23, 29, 47, 59, 61, 97, 109, 113, 131, 149, 167, 179, 181, 193,..., so n ≥ 17 is very impossible, and if 7 ≤ n < 17, then x = 7, or n is divisible by 6. If b = 12, the digits coprime to 12 are. Since 12 is a primitive root mod 5, so if n ≥ 5, then either 5 divides x or |xy| or n is a multiple of 5 − 1 = 4. Similarly, since 12 is a primitive root mod 7, so if n ≥ 7, then either 7 divides x or |xy| or n is a multiple of 7 − 1 = 6. Similarly, since 12 is a primitive root mod 17, so if n ≥ 17, then either 17 divides x or |xy| or n is a multiple of 17 − 1 = 16. Besides, 12 is also a primitive root mod 31, 41, 43, 53, 67, 101, 103, 113, 127, 137, 139, 149, 151, 163, 173, 197,..., so n ≥ 17 is very impossible, and if 7 ≤ n < 17, then x = 7 or n is divisible by 6.