login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A199713 Smallest prime greater than n-th prime containing all of its digits in decimal representation. 1
23, 13, 53, 17, 101, 31, 71, 109, 223, 229, 103, 73, 149, 347, 347, 353, 359, 163, 167, 107, 137, 97, 283, 389, 179, 1013, 1013, 701, 1009, 131, 271, 311, 173, 193, 419, 1051, 571, 613, 617, 317, 197, 811, 911, 1039, 719, 919, 1021, 1223, 2027, 1229, 2333 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
n | a(n) | prime(n)
-----+--------+---------
1 | 23 | 2
2 | 13 | 3
3 | 53 | 5
4 | 17 | 7
5 | 101 | 11
6 | 31 | 13
7 | 71 | 17
8 | 109 | 19
9 | 223 | 23
10 | 229 | 29
....
26 | 1013 | 101
27 | 1013 | 103
28 | 701 | 107
29 | 1009 | 109
30 | 131 | 113
31 | 271 | 127
32 | 311 | 131 .
PROG
(Haskell)
a199713 n = f ps where
f (q:qs) = if sort (show q) `contains` sort (show p) then q else f qs
contains _ [] = True
contains [] _ = False
contains (u:us) vs'@(v:vs) | u == v = contains us vs
| otherwise = contains us vs'
p : ps = drop (n-1) a000040_list
CROSSREFS
Sequence in context: A002549 A166526 A070838 * A064735 A104958 A124601
KEYWORD
nonn,base,look
AUTHOR
Reinhard Zumkeller, Nov 09 2011
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)