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

A162713
Primes of the form 3^p-2^p-2 generated from primes p.
1
3, 17, 328256958598444055417, 127173474823342767533669605649
OFFSET
1,1
COMMENTS
a(5) has 4816 digits.
MATHEMATICA
lst={}; Do[p=Prime[n]; If[PrimeQ[r=3^p - 2^p - 2], AppendTo[lst, r]], {n, 1000}]; lst (* Vincenzo Librandi, Sep 25 2015 *)
Select[3^#-2^#-2&/@Prime[Range[50]], PrimeQ] (* Harvey P. Dale, Dec 03 2024 *)
PROG
(Magma) [3^p-2^p-2: p in PrimesUpTo(4000) | IsPrime(3^p-2^p-2)]; // Vincenzo Librandi, Sep 25 2015
CROSSREFS
Cf. A162712 (associated p).
Sequence in context: A378860 A051710 A215913 * A161473 A208493 A082056
KEYWORD
nonn
AUTHOR
Vincenzo Librandi, Jul 11 2009
EXTENSIONS
Edited by R. J. Mathar, Jul 26 2009
STATUS
approved