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!)
A090266 Least k such that concatenation k, prime(n), k is a prime. 3
7, 1, 1, 3, 13, 17, 1, 9, 1, 1, 3, 3, 3, 3, 1, 1, 3, 3, 3, 7, 3, 3, 1, 57, 17, 3, 3, 1, 9, 1, 33, 1, 19, 3, 1, 3, 3, 9, 57, 1, 3, 21, 7, 9, 1, 21, 9, 3, 7, 21, 7, 1, 3, 1, 3, 3, 3, 3, 9, 7, 3, 3, 3, 3, 9, 1, 9, 41, 7, 3, 3, 1, 29, 9, 11, 1, 3, 9, 1, 9, 7, 3, 3, 17, 9, 1, 31, 17, 3, 17, 3, 7, 27, 3, 9, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
lk[n_]:=Module[{idn=IntegerDigits[n], k=1}, While[!PrimeQ[FromDigits[ Join[ IntegerDigits[k], idn, IntegerDigits[k]]]], k=k+2]; k]; Table[lk[i], {i, Prime[ Range[100]]}] (* Harvey P. Dale, Apr 26 2015 *)
PROG
(Python)
from sympy import prime, isprime
def a(n):
spn = str(prime(n)); k = 1; sk = str(k)
while not isprime(int(sk + spn + sk)): k += 1; sk = str(k)
return k
print([a(n) for n in range(1, 97)]) # Michael S. Branicky, Jul 01 2021
CROSSREFS
Sequence in context: A241299 A090269 A086867 * A010142 A294646 A051422
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 28 2003
EXTENSIONS
More terms from David Wasserman, Oct 24 2005
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 19 14:10 EDT 2024. Contains 371792 sequences. (Running on oeis4.)