login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A128946
Numbers n such that the largest prime < 10^n is a twin prime member.
0
1, 5, 14, 406, 1118, 4934
OFFSET
1,2
COMMENTS
A003618(a(n)) is in A001097 (Twin primes).
EXAMPLE
For n=1, 10^1 = 10. 7, the greatest prime < 10, is a member of the twin prime pair 5,7.
MATHEMATICA
Select[Range[410], PrimeQ[NextPrime[10^#, -1]-2]&] (* The program generates the first four terms of the sequence. *) (* Harvey P. Dale, Jul 26 2024 *)
PROG
(PARI) g(n)=for(x=1, n, y=precprime(10^x); if(ispseudoprime(y-2), print1(x", ")))
CROSSREFS
Sequence in context: A317691 A067857 A027832 * A156219 A000331 A353610
KEYWORD
hard,more,nonn
AUTHOR
Cino Hilliard, Apr 28 2007
EXTENSIONS
Edited by Ray Chandler, May 12 2007
a(5), a(6) from Donovan Johnson, Feb 21 2008
STATUS
approved