permutable prime, also known as anagrammatic prime, is a prime numberwhich, 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.

All permutable primes of two or more digits are composed from the digits 1, 5, 7, E, because no prime number except 2 is even, and no prime number besides 3 is divisible by 3. It is proven that no permutable prime exists which contains three different of the four digits 1, 5, 7, E, as well as that there exists no permutable prime composed of two or more of each of two digits selected from 1, 5, 7, E.

The smallest elements of the unique permutation sets of the permutable primes with fewer than 5777 digits are known

2, 3, 5, 7, E, R2, 15, 57, 5E, R3, 117, 11E, 555E, R5, R17, R81, R91, R225, R255, R4X5

where Rn = (10^n-1)/E is the repunit with length n, e.g. R3 = 111.

There is no n-digit permutable prime for 4 < n < 10100 which is not a repunit. It is conjectured that there are no non-repunit permutable primes other than those listed above.

In base 10, every permutable prime is a repunit or a near-repdigit, that is, it is a permutation of the integer P(bnxy) = xxxx...xxxyb (n digits, in base b) where x and y are digits which is coprime to b. Besides, x and y must be also coprime (since if there is a prime p divides both x and y, then p also divides the number), so if x = y, then x = y = 1. (This is not true in all bases, but exceptions are rare and could be finite in any given base, the only exceptions in bases up to 20 are 139E, 36XE, 2:4:711, 7:8:X11, 2:9:1217, 1:5:E19, 2:8:1119, 4:9:161E, and 6:12:131E, and there are no exceptions that is not 3-digit numbers in all bases up to 36, and it is also conjectured that this is also true in all bases, i.e. in any base, all exceptions are 3-digit numbers)

Let P(bnxy) be a permutable prime in base b and let p be a prime such that n ≥ p. 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. (Since b is a primitive root mod pand p does not divide |x − y|, the p numbers xxxx...xxxyxxxx...xxyxxxxx...xyxx, ..., xxxx...xyxx...xxxx (only the bp−2 digit is y, others are all x), xxxx...yxxx...xxxx (only the bp−1 digit is y, others are all x), xxxx...xxxx (the repdigit with n xs) 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 (the repdigit with nxs) must be divisible by p. Since p does not divide x, so p must divide the repunit with n 1s. Since b is a primitive root mod p, the multiplicative order of n mod p is p − 1. Thus, n must be divisible by p − 1)

Thus, in the dozenal (base 10) case, if a non-repunit permutable prime has >= 15 digits, then the number of digits must be a multiple of 14 (since 15 cannot divide either x or |x−y| (since x ∈ {1, 5, 7, E} and y ∈ {1, 5, 7, E}) and 10 is a primitive root mod 15), thus the number of digits must be at least 28 (=2*14), however, if a non-repunit permutable prime has >= 27 digits, then the number of digits must be a multiple of 26, thus the number of digits must be at least lcm(14,26) = 180, ..., and the possibility getting rare and rare.

base conjectured largest non-repunit permutable prime dozenal value
2 (not exist) (not exist)
3 21 7
4 311 45
5 44441 1981
6 551 157
7 5554 11X7
8 7333 224E
9 8777 38E1
X 991 6X7
E XXXX7 79247
10 E555 E555
11 7:6:6:6 9651
12 9:1:1:1 124E7
13 11:7:7:7:7 28E611
14 11:11:E 2077
15 11:11:11:6 33325
16 11:11:11:E 3X555
17 11:11:11:2 46565
18 9:1:1:1 35XE1
19 14:1:1:1 72027
1X 15:3:3:3 89775
1E 16:16:16:E E05E5
20 15:7:7 5927
base non-repunit permutable prime dozenal value
2
3 2, 12, 21 2, 5, 7
4 2, 3, 13, 31, 113, 131, 311 2, 3, 7, 11, 1E, 25, 45
5 2, 3, 12, 21, 23, 32, 34, 43, 14444, 41444, 44144, 44414, 44441 2, 3, 7, E, 11, 15, 17, 1E, 881, 1711, 1921, 1971, 1981
6 2, 3, 5, 15, 51, 155, 515, 551 2, 3, 5, E, 27, 5E, 13E, 157
7 2, 3, 5, 14, 16, 23, 25, 32, 41, 52, 56, 61, 65, 155, 166, 515, 551, 616, 661, 1444, 4144, 4414, 4441, 4555, 5455, 5545, 5554 2, 3, 5, E, 11, 15, 17, 1E, 25, 31, 35, 37, 3E, 75, 81, 195, 1E5, 217, 241, 3E7, X11, XE7, E11, E61, 1167, 11X1, 11X7
8 2, 3, 5, 7, 15, 35, 37, 51, 53, 57, 73, 75, 3337, 3373, 3733, 7333 2, 3, 5, 7, 11, 25, 27, 35, 37, 3E, 4E, 51, 1027, 104E, 11E7, 224E
9 2, 3, 5, 7, 12, 14, 18, 21, 25, 41, 47, 52, 74, 78, 81, 87, 122, 212, 221, 788, 878, 887, 4555, 5455, 5545, 5554, 7778, 7787, 7877, 8777 2, 3, 5, 7, E, 11, 15, 17, 1E, 31, 37, 3E, 57, 5E, 61, 67, 85, 125, 131, 45E, 4EE, 507, 1E4E, 23XE, 244E, 2457, 33X5, 33E1, 3451, 38E1
X 2, 3, 5, 7, 13, 17, 31, 37, 71, 73, 79, 97, 113, 131, 199, 311, 337, 373, 733, 919, 991 2, 3, 5, 7, 11, 15, 27, 31, 5E, 61, 67, 81, 95, XE, 147, 21E, 241, 271, 511, 647, 6X7
E 2, 3, 5, 7, 12, 16, 18, 21, 27, 29, 34, 3X, 43, 49, 56, 61, 65, 67, 72, 76, 81, 89, 92, 94, 98, X3, 117, 139, 171, 193, 1XX, 319, 335, 353, 36X, 391, 3X6, 533, 566, 588, 63X, 656, 665, 6X3, 711, 7XX, 858, 885, 913, 931, X1X, X36, X63, X7X, XX1, XX7, 2777, 7277, 7727, 7772, 9XXX, X9XX, XX9X, XXX9, 7XXXX, X7XXX, XX7XX, XXX7X, XXXX7 2, 3, 5, 7, 11, 15, 17, 1E, 25, 27, 31, 37, 3E, 45, 51, 57, 5E, 61, 67, 6E, 75, 81, 85, 87, 8E, 95, E7, 117, 147, 167, 181, 27E, 295, 2E1, 307, 327, 33E, 455, 485, 4X5, 541, 557, 565, 59E, 5E7, 687, 71E, 745, 77E, 797, 867, 881, 8X7, 901, 921, 927, 20E5, 56E7, 5X95, 5E17, 7851, 849E, 8571, 857E, 57947, 76X81, 78EX7, 79221, 79247
10 2, 3, 5, 7, E, 15, 51, 57, 5E, 75, E5, 117, 11E, 171, 1E1, 711, E11, 555E, 55E5, 5E55, E555 2, 3, 5, 7, E, 15, 51, 57, 5E, 75, E5, 117, 11E, 171, 1E1, 711, E11, 555E, 55E5, 5E55, E555
11 2, 3, 5, 7, E, 1:4, 1:6, 1:X, 2:3, 2:5, 3:2, 3:8, 4:1, 5:2, 5:6, 5:8, 6:1, 6:5, 6:E, 7:X, 7:10, 8:3, 8:5, 9:X, X:1, X:7, X:9, E:6, 10:7, 1:1:E, 1:3:3, 1:5:5, 1:E:1, 2:2:9, 2:4:7, 2:7:4, 2:9:2, 3:1:3, 3:3:1, 3:3:E, 3:8:8, 3:E:3, 4:2:7, 4:7:2, 5:1:5, 5:5:1, 7:2:4, 7:4:2, 7:7:9, 7:8:X, 7:9:7, 7:X:8, 8:3:8, 8:7:X, 8:8:3, 8:X:7, 9:2:2, 9:7:7, X:7:8, X:8:7, E:1:1, E:3:3, 4:4:4:5, 4:4:5:4, 4:5:4:4, 5:4:4:4, 6:6:6:7, 6:6:7:6, 6:7:6:6, 7:6:6:6 2, 3, 5, 7, E, 15, 17, 1E, 25, 27, 35, 3E, 45, 57, 5E, 61, 67, 6E, 75, 85, 87, 8E, 91, X7, XE, E5, E7, 105, 117, 141, 157, 17E, 221, 271, 291, 301, 321, 377, 397, 3X5, 437, 465, 4E1, 541, 5EE, 63E, 851, 871, 8XE, 901, 90E, 921, 987, X11, X17, X41, X91, E2E, 1051, 1061, 1101, 1125, 5615, 5625, 5735, 6945, 8321, 8331, 8441, 9651
12 2, 3, 5, 7, E, 11, 1:3, 1:5, 1:9, 3:1, 3:5, 3:E, 5:1, 5:3, 5:9, 9:1, 9:5, 9:E, 9:11, E:3, E:9, E:11, 11:9, 11:E, 3:3:11, 3:11:3, 11:3:3, 1:1:1:9, 1:1:9:1, 1:9:1:1, 9:1:1:1 2, 3, 5, 7, E, 11, 15, 17, 1E, 37, 3E, 45, 5E, 61, 67, X7, XE, E5, E7, 111, 117, 11E, 13E, 141, 457, 545, 1601, 186E, 1937, 274E, 124E7
13 2, 3, 5, 7, E, 11, 1:2, 1:4, 1:12, 2:1, 2:7, 2:E, 2:11, 4:1, 4:7, 4:11, 7:2, 7:4, 7:8, 8:7, 8:E, E:2, E:8, 11:2, 11:4, 12:1, 1:11:11, 2:2:7, 2:7:2, 4:4:E, 4:E:4, 7:2:2, 7:7:11, 7:11:7, E:4:4, E:12:12, 11:1:11, 11:7:7, 11:11:1, 12:E:12, 12:12:E, 1:4:4:4, 4:1:4:4, 4:4:1:4, 4:4:4:1, 7:7:7:7:11, 7:7:7:11:7, 7:7:11:7:7, 7:11:7:7:7, 11:7:7:7:7 2, 3, 5, 7, E, 11, 15, 17, 25, 27, 31, 35, 37, 51, 57, 61, 8E, 91, 95, X7, XE, 11E, 125, 145, 147, 157, 301, 347, 3X5, 68E, 751, E1E, E91, 1041, 1577, 168E, 1861, 1911, 1981, 1E15, 1E4E, 2617, 7E91, 8417, 8451, 163891, 163941, 164611, 173541, 28E611
14 2, 3, 5, 7, E, 11, 1:7, 1:13, 3:5, 3:E, 3:11, 5:3, 5:9, 7:1, 9:5, E:3, E:13, 11:3, 13:1, 13:E, 1:1:5, 1:1:E, 1:5:1, 1:E:1, 3:7:7, 5:1:1, 5:5:11, 5:11:5, 7:3:7, 7:7:3, 7:E:E, E:1:1, E:7:E, E:E:7, E:11:11, 11:5:5, 11:E:11, 11:11:E 2, 3, 5, 7, E, 11, 1E, 27, 45, 4E, 51, 6E, 75, 95, 105, 12E, 13E, 157, 181, 18E, 1E1, 1E7, 241, 301, 61E, 901, 965, X45, 109E, 112E, 118E, 1781, 184E, 189E, 1911, 1E85, 2051, 2077
15 2, 3, 5, 7, E, 11, 1:6, 1:12, 2:3, 2:11, 3:2, 3:8, 3:X, 4:5, 4:E, 5:4, 5:14, 6:1, 6:E, 7:10, 8:3, 8:11, 8:13, 9:X, X:3, X:9, X:E, E:4, E:6, E:X, 10:7, 11:2, 11:8, 12:1, 13:8, 14:5, 7:X:X, 7:14:14, X:7:X, X:X:7, 14:7:14, 14:14:7, 6:11:11:11, 11:6:11:11, 11:11:6:11, 11:11:11:6 2, 3, 5, 7, E, 11, 1E, 27, 31, 3E, 45, 4E, 51, 61, 67, 75, 85, 87, 95, XE, E7, 105, 107, 117, 125, 12E, 131, 13E, 141, 145, 157, 167, 171, 17E, 19E, 1E1, 1337, 1407, 18E7, 1937, 2907, 2X07, 17451, 32125, 33251, 33325
16 2, 3, 5, 7, E, 11, 15, 1:E, 5:7, 5:11, 5:15, 7:5, 7:11, E:1, 11:5, 11:7, 15:5, 1:1:E, 1:1:15, 1:E:1, 1:11:11, 1:15:1, 5:5:E, 5:E:5, 7:E:E, 7:15:15, E:1:1, E:5:5, E:7:E, E:E:7, E:E:15, E:15:E, 11:1:11, 11:11:1, 15:1:1, 15:7:15, 15:E:E, 15:15:7, E:11:11:11, 11:E:11:11, 11:11:E:11, 11:11:11:E 2, 3, 5, 7, E, 11, 15, 25, 81, 87, 8E, XE, E7, 147, 17E, 181, 21E, 255, 25E, 377, 3E7, 447, EE5, 107E, 1525, 15EE, 20X7, 214E, 2185, 2221, 222E, 22E5, 2557, 26X7, 3247, 332E, 3385, 3451, 33857, 3X0E7, 3X527, 3X555
17 2, 3, 5, 7, E, 11, 15, 1:X, 1:10, 2:3, 2:5, 2:9, 3:2, 3:4, 3:X, 3:12, 3:14, 4:3, 4:7, 4:11, 5:2, 5:8, 5:10, 5:12, 5:16, 7:4, 7:14, 7:16, 8:5, 8:13, 9:2, 9:X, X:1, X:3, X:9, E:12, E:16, 10:1, 10:5, 11:4, 11:14, 12:3, 12:5, 12:E, 12:15, 13:8, 14:3, 14:7, 14:11, 15:12, 16:5, 16:7, 16:E, 1:1:3, 1:2:2, 1:3:1, 1:10:10, 1:13:13, 2:1:2, 2:2:1, 2:2:11, 2:9:12, 2:11:2, 2:12:9, 3:1:1, 3:7:7, 3:X:X, 4:4:E, 4:E:4, 7:3:7, 7:7:3, 7:7:15, 7:15:7, 9:2:12, 9:12:2, X:3:X, X:X:3, E:4:4, E:13:13, 10:1:10, 10:10:1, 11:2:2, 12:2:9, 12:9:2, 13:1:13, 13:E:13, 13:13:1, 13:13:E, 15:7:7, 2:11:11:11, 11:2:11:11, 11:11:2:11, 11:11:11:2 2, 3, 5, 7, E, 11, 15, 25, 27, 35, 37, 3E, 4E, 51, 57, 5E, 61, 67, 6E, 75, 81, 87, 8E, 91, 95, E5, 105, 107, 111, 11E, 125, 131, 13E, 141, 147, 167, 16E, 171, 175, 18E, 19E, 1X5, 1X7, 1E1, 1E7, 205, 217, 21E, 225, 241, 24E, 251, 255, 27E, 295, 2XE, 421, 471, 51E, 535, 545, 637, 68E, 6E1, 77E, 85E, 8XE, X77, E61, 15EE, 165E, 1671, 17X1, 1XE1, 2051, 2165, 224E, 2417, 257E, 2637, 2781, 28X5, 2E51, 3037, 31X1, 331E, 3371, 337E, 3771, X97E, 44205, 4641E, 46565
18 2, 3, 5, 7, E, 11, 15, 17, 1:3, 1:9, 3:1, 3:E, 3:11, 3:17, 7:E, 7:15, 9:1, 9:E, 9:11, 9:15, 9:17, E:3, E:7, E:9, E:11, 11:3, 11:9, 11:E, 11:15, 15:7, 15:9, 15:11, 15:17, 17:3, 17:9, 17:15, 3:3:15, 3:15:3, 7:7:11, 7:11:7, 11:7:7, 15:3:3, 1:1:1:3, 1:1:1:9, 1:1:3:1, 1:1:9:1, 1:3:1:1, 1:9:1:1, 3:1:1:1, 9:1:1:1 2, 3, 5, 7, E, 11, 15, 17, 1E, 25, 51, 5E, 61, 67, 107, 111, 131, 13E, 141, 145, 147, 167, 16E, 171, 175, 19E, 1X5, 1X7, 1E1, 24E, 251, 255, 25E, 27E, 285, 291, 8X5, X87, 1861, 1937, 3117, 3E7E, 4X5E, 4X65, 4X91, 4E71, 5405, 6885, 12171, 35XE1,
19 2, 3, 5, 7, E, 11, 15, 17, 1:2, 1:X, 1:14, 1:18, 2:1, 2:5, 2:E, 2:15, 2:17, 4:5, 4:11, 5:2, 5:4, 5:8, 8:5, 8:E, 8:11, X:1, X:11, X:15, X:17, E:2, E:8, E:18, 11:4, 11:8, 11:X, 11:18, 14:1, 14:15, 15:2, 15:X, 15:14, 17:2, 17:X, 17:18, 18:1, 18:E, 18:11, 18:17, 1:5:E, 1:8:8, 1:X:X, 1:E:5, 1:17:17, 1:18:18, 2:8:11, 2:11:8, 5:1:E, 5:E:1, 5:E:E, 8:1:8, 8:2:11, 8:8:1, 8:11:2, X:1:X, X:X:1, E:1:5, E:5:1, E:5:E, E:E:5, 11:2:8, 11:8:2, 17:1:17, 17:17:1, 18:1:18, 18:18:1, 1:1:1:14, 1:1:14:1, 1:14:1:1, 4:4:4:E, 4:4:E:4, 4:E:4:4, E:4:4:4, 14:1:1:1 2, 3, 5, 7, E, 11, 15, 17, 1E, 27, 31, 35, 37, 3E, 45, 4E, 51, 75, 81, 8E, 91, 95, 125, 12E, 131, 157, 167, 16E, 171, 175, 17E, 18E, 1E1, 1E5, 1E7, 205, 241, 255, 25E, 267, 271, 295, 2X1, 2XE, 2E1, 2EE, 301, 307, 3X5, 435, 471, 485, 5E7, 615, 747, 80E, 1365, 14E1, 14EE, 2085, 20X7, 2181, 224E, 26X1, 2811, 29X5, 2X51, 2X5E, 2E3E, 341E, 34EE, 4X57, 50E7, 5165, 5421, 5777, 5987, 9557, 1X61E, 1X717, 20367, 50037, 72027,
1X 2, 3, 5, 7, E, 11, 15, 17, 1:9, 1:13, 1:17, 1:19, 3:5, 3:7, 5:3, 5:15, 5:19, 7:3, 7:11, 9:1, 11:7, 13:1, 13:15, 13:17, 15:5, 15:13, 17:1, 17:13, 19:1, 19:5, 1:5:5, 1:13:13, 3:3:11, 3:11:3, 5:1:5, 5:5:1, 5:5:17, 5:17:5, 7:7:15, 7:15:7, 9:17:17, 11:3:3, 11:13:13, 13:1:13, 13:11:13, 13:13:1, 13:13:11, 13:13:15, 13:15:13, 15:7:7, 15:13:13, 17:5:5, 17:9:17, 17:17:9, 3:3:3:15, 3:3:15:3, 3:15:3:3, 15:3:3:3 2, 3, 5, 7, E, 11, 15, 17, 27, 31, 35, 37, 5E, 61, 95, X7, XE, 111, 11E, 147, 205, 237, 24E, 251, 277, 285, 2XE, 301, 327, 32E, 41E, 591, X77, 1011, 14EE, 156E, 1585, 178E, 2087, 2221, 2935, 3821, 3X11, 4281, 4461, 4487, 4497, 449E, 4515, 4X31, 4E65, 547E, 5545, 569E, 1745E, 17665, 1E355, 89775
1E 2, 3, 5, 7, E, 11, 15, 17, 1:6, 1:18, 2:7, 2:13, 3:X, 3:18, 4:9, 4:E, 4:13, 4:19, 5:10, 5:14, 6:1, 6:17, 7:2, 7:10, 7:16, 7:18, 8:11, 8:13, 9:4, X:3, X:E, E:4, E:X, E:14, 10:5, 10:7, 11:8, 12:13, 13:2, 13:4, 13:8, 13:12, 13:1X, 14:5, 14:E, 14:19, 15:16, 16:7, 16:15, 17:6, 17:18, 18:1, 18:3, 18:7, 18:17, 19:4, 19:14, 1X:13, 1:3:3, 1:6:6, 1:X:X, 3:1:3, 3:3:1, 3:3:11, 3:11:3, 4:9:16, 4:16:9, 6:1:6, 6:6:1, 6:6:15, 6:12:13, 6:13:12, 6:15:6, 9:4:16, 9:16:4, X:1:X, X:X:1, E:E:15, E:15:E, 11:3:3, 11:16:16, 11:17:17, 12:6:13, 12:13:6, 13:6:12, 13:12:6, 15:6:6, 15:E:E, 16:4:9, 16:9:4, 16:11:16, 16:16:11, 17:11:17, 17:17:11, 2:9:9:9, 9:2:9:9, 9:9:2:9, 9:9:9:2, E:10:10:10, E:16:16:16, 10:E:10:10, 10:10:E:10, 10:10:10:E, 16:E:16:16, 16:16:E:16, 16:16:16:E 2, 3, 5, 7, E, 11, 15, 17, 25, 37, 45, 51, 67, 75, 85, 87, 8E, 95, X7, XE, E7, 111, 117, 125, 12E, 131, 145, 147, 157, 175, 181, 195, 19E, 1X5, 1E5, 1E7, 217, 241, 24E, 251, 255, 25E, 267, 271, 277, 285, 2X1, 2E1, 2EE, 30E, 321, 325, 327, 32E, 33E, 347, 357, 375, 421, 481, 541, E25, E61, E71, 1115, 1431, 1577, 1X2E, 1E01, 1E15, 2047, 2065, 2097, 299E, 2EE7, 30E7, 3241, 3635, 3725, 4031, 4291, 42E1, 445E, 45X5, 481E, 4947, 5355, 5435, 569E, 5771, 583E, 5911, 6001, 60E1, 14E67, 54135, 561X7, 562E5, 69361, 6E267, 7403E, 743X1, 743EE, XX435, E04X7, E05E5
20 2, 3, 5, 7, E, 11, 15, 17, 1E, 1:11, 1:15, 1:17, 5:7, 5:E, 5:17, 7:5, 7:E, E:5, E:7, E:15, E:17, 11:1, 15:1, 15:E, 15:1E, 17:1, 17:5, 17:E, 17:1E, 1E:15, 1E:17, 1:5:5, 5:1:5, 5:5:1, 7:7:15, 7:15:7, 15:7:7 2, 3, 5, 7, E, 11, 15, 17, 1E, 31, 35, 37, X7, XE, E7, 125, 12E, 1X5, 1X7, 1E5, 1E7, 221, 2X1, 2XE, 2EE, 321, 325, 32E, 33E, 3E5, 3E7, 4X5, 1825, 18X1, 2535, 26X7, 5927