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!)
A103129 Least k such that 10^n + k - 1 is the first of a pair of twin primes. 0
2, 2, 20, 8, 152, 38, 140, 38, 8, 278, 818, 62, 1268, 98, 2372, 1550, 20, 620, 98, 392, 410, 650, 5528, 2732, 560, 950, 428, 602, 2798, 1682, 7190, 2450, 6752, 7598, 8420, 16880, 872, 5570, 10328, 16112, 2132, 6122, 23330, 5180, 4250, 2642, 2258, 3998, 8282, 18308, 7538, 41348 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
a[n_]:=Take[Select[Range[50000], PrimeQ[10^n+#-1]&&PrimeQ[10^n+#+1]&], 1][[1]]; Table[a[n], {n, 52}] (* James C. McMahon, Jan 23 2024 *)
PROG
(PARI) a(n) = my(k=1); while (!isprime(10^n + k - 1) || !isprime(10^n + k + 1), k++); k; \\ Michel Marcus, Jan 24 2024
CROSSREFS
Sequence in context: A093777 A326177 A370709 * A322898 A009340 A053593
KEYWORD
nonn
AUTHOR
Pierre CAMI, Mar 17 2005
EXTENSIONS
Corrected and extended by Don Reble, Mar 18 2005
a(49)-a(52) from James C. McMahon, Jan 27 2024
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 24 09:18 EDT 2024. Contains 371935 sequences. (Running on oeis4.)