login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A086042 Nontrivial numbers which are prime and yield another prime when their digits are sorted in ascending order. 1
31, 71, 73, 97, 101, 103, 107, 109, 131, 173, 193, 197, 271, 293, 307, 311, 317, 373, 397, 419, 439, 491, 509, 547, 571, 593, 607, 617, 647, 659, 673, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 809, 839, 907, 919, 937, 941, 947, 953, 971, 983, 991 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

Primes with digits already in ascending order (like 13 and 2357) are trivial cases and are therefore excluded.

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]]] (* From Harvey P. Dale, Nov 14 2011 *)

CROSSREFS

Cf. A086402, A086051.

Sequence in context: A142110 A110831 A193573 * A086051 A109309 A127191

Adjacent sequences:  A086039 A086040 A086041 * A086043 A086044 A086045

KEYWORD

base,nonn

AUTHOR

Chuck Seggelin (barkeep(AT)plastereddragon.com), Jul 07 2003

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 13 18:14 EST 2012. Contains 205534 sequences.