OFFSET
1,1
COMMENTS
Primes with digits already in ascending order (like 13 and 2357) are trivial cases and are therefore excluded.
See A211654 for the sequence including the trivial cases. - M. F. Hasler, Jul 30 2019
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1)=31 because an ascending sort of 31's digits yields 13 which is also prime. a(53)=1009 because an ascending sort of 1009's digits yields 19 which is also prime.
MATHEMATICA
paoQ[n_]:=Module[{idn=IntegerDigits[n], sidn}, sidn=Sort[idn]; sidn!=idn && PrimeQ[FromDigits[sidn]]] (* Harvey P. Dale, Nov 14 2011 *)
PROG
(PARI) select( is_A086042(p, q=fromdigits(vecsort(digits(p))))={p>q&&isprime(q)&&isprime(p)}, [1..999]) \\ M. F. Hasler, Jul 30 2019
(Magma) [p:p in PrimesUpTo(1000)| IsPrime(Seqint(Reverse(Sort(Intseq(p, 10))))) and p ne Seqint(Reverse(Sort(Intseq(p, 10)))) ]; // Marius A. Burtea, Jul 30 2019
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Chuck Seggelin (barkeep(AT)plastereddragon.com), Jul 07 2003
STATUS
approved