OFFSET
1,1
COMMENTS
Starts with the 5-digit terms listed in A109176: There is no smaller prime of that form, since there is no odd number of that form with less than 3 digits, and those with digits {0,1,2} and {0,1,2,3} (as, e.g., 2013...) are all divisible by 3, thus composite.
For similar reasons, there cannot be terms with the 6 digits {0, ..., 5} or the 7 digits {0, ..., 6} (since 1 + ... + 5 (+ 6) is divisible by 3).
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..2684
EXAMPLE
As explained in the comments, there cannot be a term with fewer than 5 digits. The smallest number whose digits are a permutation of (0, ..., 4) is 10234, but this is even and cannot be a prime. The next larger one happens to be prime, so that's a(1) = 10243.
It is also explained in the comments why there's no term larger than 76543210. The largest odd numbers of the given form below this limit are of the form 7654xyz1 and 7654abc3, with xyz resp. abc permutations of 023 resp. 012. It happens that the case xyz=023 is the only one which yields a prime: this is the largest term of this sequence, a(2684) = 76540231 = A109178(1).
MATHEMATICA
Select[Prime@ Range[10^6], {1} == Union@ Prepend[Differences@ #, 1 + First@ #] &@ Sort@ IntegerDigits@ # &] (* Michael De Vlieger, Aug 20 2017 *)
Table[Select[FromDigits /@ Permutations[Range[0, n]], PrimeQ[ #] && DigitCount[ #, 10, 0] == 1 &], {n, 9}] // Flatten (* Harvey P. Dale, Jan 01 2020 *)
PROG
(PARI) forprime(p=2, , #vecsort(t=digits(p), , 8)==#t && #t==vecmax(t)+1 && print1(p", "))
CROSSREFS
KEYWORD
nonn,base,nice,fini,full
AUTHOR
M. F. Hasler, Jan 06 2013
STATUS
approved