login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Numbers n such that both 3^n+2 and 2^n+3 are primes.
4

%I #8 Sep 02 2022 17:37:45

%S 1,2,3,4,15

%N Numbers n such that both 3^n+2 and 2^n+3 are primes.

%C Intersection of A057732 and A051783. a(6)>1000.

%C Since this is the intersection of A057732 and A051783, a(6)>95504. - _Dmitry Kamenetsky_, Jul 29 2008

%t Select[Range[20],AllTrue[{3^#+2,2^#+3},PrimeQ]&] (* _Harvey P. Dale_, Sep 02 2022 *)

%o (PARI) for(n=0,1000,if(isprime(2^n+3)&&isprime(3^n+2),print(n)))

%Y Cf. A051783, A057732.

%K more,nonn

%O 1,2

%A _Zak Seidov_, Jan 29 2008