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”).

A128945
Numbers n such that the greatest prime < 2^n is a twin prime member.
0
2, 3, 4, 5, 6, 10, 12, 16, 20, 149, 150, 476, 594, 788, 1574, 1664, 1691, 6117, 6242
OFFSET
1,1
COMMENTS
A014234(a(n)) is in A001097 (twin primes).
EXAMPLE
For n=5, 31 is the greatest prime < 2^5 and is a member of the twin prime pair 29, 31.
PROG
(PARI) g(n, b)=for(x=1, n, y=precprime(b^x); if(ispseudoprime(y-2), print1(x", ")))
CROSSREFS
Sequence in context: A353385 A018266 A344826 * A318533 A048569 A033085
KEYWORD
hard,more,nonn
AUTHOR
Cino Hilliard, Apr 28 2007
EXTENSIONS
Edited by and terms a(15)-a(17) from Ray Chandler, May 12 2007
a(18), a(19) Donovan Johnson, Feb 21 2008
STATUS
approved