The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A069628 a(1) = 1; a(2n) = smallest prime starting (most significant digits) with a(2n-1). a(2n+1) = smallest prime ending (least significant digits) in a(2n). 9
1, 11, 211, 2111, 22111, 2211109, 92211109, 9221110901, 29221110901, 2922111090137, 32922111090137, 3292211109013747, 73292211109013747, 7329221110901374771, 157329221110901374771, 15732922111090137477101 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
a[n_] := (j = ToString[n]; l = {"1", "3", "7", "9", "01", "03", "07", "09"}; k = 1; While[p = ToExpression[ StringJoin[j, ToString[l[[k]] ]]]; k < 9 && ! PrimeQ[p], k++ ]; If[k < 9, Return[p]]; i = IntegerDigits[n]; k = 11; While[p = FromDigits[Join[i, IntegerDigits[k]]]; ! PrimeQ[p], k++ ]; Return[p]); b[n_] := (i = IntegerDigits[n]; k = 1; While[p = FromDigits[ Join[ IntegerDigits[k], i]]; !PrimeQ[p], k++ ]; Return[p]); f[1] = 1; f[n_] := If[ EvenQ[n], a[f[n - 1]], b[f[n - 1]]]; Table[ f[n], {n, 1, 18}]
CROSSREFS
Sequence in context: A124991 A176009 A068836 * A069613 A075858 A136307
KEYWORD
nonn,base
AUTHOR
Amarnath Murthy, Mar 27 2002
EXTENSIONS
Edited and extended by Robert G. Wilson v, Apr 03 2002
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 May 21 17:21 EDT 2024. Contains 372738 sequences. (Running on oeis4.)