login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A028864 Primes with digits in nondecreasing order. 13
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 37, 47, 59, 67, 79, 89, 113, 127, 137, 139, 149, 157, 167, 179, 199, 223, 227, 229, 233, 239, 257, 269, 277, 337, 347, 349, 359, 367, 379, 389, 449, 457, 467, 479, 499, 557, 569, 577, 599, 677, 1117, 1123, 1129 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

Identical digits are acceptable, e.g., 1117 is in the sequence. - Harvey P. Dale, Aug 16 2011

LINKS

T. D. Noe and Alois P. Heinz, Table of n, a(n) for n = 1..10000 (terms n = 1..1000 from T. D. Noe)

FORMULA

Trivially, a(n) >> exp(n^(1/10)). - Charles R Greathouse IV, Mar 15 2014

prime(n) = A028905(n) if prime(n) is in this sequence. - Alonso del Arte, Nov 25 2019

MATHEMATICA

daoQ[n_] := Count[Differences[IntegerDigits[n]], _?(# < 0 &)] == 0; Select[Prime[Range[200]], daoQ] (* Harvey P. Dale, Aug 16 2011 *)

PROG

(R) j=2; y=as.bigz(c()); while(j<1000) {

x=sort(as.numeric(strsplit(as.character(j), spl="")[[1]]), decr=F)

if(j==paste(x[x>0], collapse="")) y=c(y, j)

j=nextprime(j)

} //  Christian N. K. Anderson, Apr 04 2013

(PARI) select(n->n=digits(n); n==vecsort(n), primes(500)) \\ Charles R Greathouse IV, Mar 15 2014

(MAGMA) [p:p in PrimesUpTo(1200)| Reverse(Intseq(p)) eq Sort(Intseq(p))]; // Marius A. Burtea, Nov 29 2019

CROSSREFS

Cf. A009994, A052015, A028867, A052014, A028905.

Sequence in context: A335331 A279956 A197300 * A342063 A067903 A341934

Adjacent sequences:  A028861 A028862 A028863 * A028865 A028866 A028867

KEYWORD

nonn,base,nice

AUTHOR

Patrick De Geest

EXTENSIONS

Definition corrected by Omar E. Pol, Mar 22 2012

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 12 10:54 EDT 2021. Contains 343821 sequences. (Running on oeis4.)