OFFSET
1,2
EXAMPLE
For n=4, 17 is the smallest prime > 2^4 and is a member of the twin prime pair 17, 19.
MATHEMATICA
Select[Range[4200], AnyTrue[NextPrime[2^#]+{2, -2}, PrimeQ]&] (* Harvey P. Dale, Mar 07 2023 *)
PROG
(PARI) g(n, b)=for(x=1, n, y=nextprime(b^x); if(ispseudoprime(y+2), print1(x", ")))
CROSSREFS
KEYWORD
hard,more,nonn
AUTHOR
Cino Hilliard, Apr 28 2007
EXTENSIONS
Edited by Ray Chandler, May 12 2007
One more term from Ryan Propper, Jan 03 2008
STATUS
approved