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!)
A030456 a(0) = 2; a(n) is smallest prime containing a(n-1) as substring. 5
2, 23, 223, 1223, 12239, 122393, 1223939, 12239393, 122393939, 1223939399, 12239393993, 122393939933, 12239393993311, 412239393993311, 8412239393993311, 78412239393993311, 2378412239393993311, 23784122393939933111, 2623784122393939933111, 26237841223939399331111 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
Sean A. Irvine, Table of n, a(n) for n = 0..100 (first 17 terms from Zak Seidov)
Sean A. Irvine, Java program (github)
MATHEMATICA
FromDigits /@ Nest[Append[#, Block[{p = NextPrime@ FromDigits@ #[[-1]], d}, While[Length@ SequencePosition[Set[d, IntegerDigits@ p], #[[-1]]] == 0, p = NextPrime@ p]; d]] &, {{2}}, 7] (* Michael De Vlieger, Feb 26 2018 *)
CROSSREFS
Cf. A068167.
Sequence in context: A340296 A242904 A068167 * A357436 A069837 A069629
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
a(17) onward from Zak Seidov, Nov 02 2009
a(19) corrected by Andrew Howroyd, Feb 26 2018
a(17) onward corrected by Sean A. Irvine, Apr 01 2020
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 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)