|
|
A162712
|
|
Primes p such that 3^p-2^p-2 is also prime.
|
|
1
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
The associated 3^p-2^p-2 are in A162713.
The list of k such that 3^k-2^k-2 is prime is: 2, 3, 43, 61, 63, 1369, ..., where 63 and 1369 are not prime.
|
|
LINKS
|
|
|
EXAMPLE
|
2 is in the sequence because 3^2-2^2-2 = 3 is prime.
3 is in the sequence because 3^3-2^3-2 = 17 is prime.
|
|
MAPLE
|
a := proc(n) if isprime(n) and isprime(3^n-2^n-2) then n end if end proc:
|
|
MATHEMATICA
|
Select[Prime[Range[11000]], PrimeQ[3^# - 2^# - 2] &] (* Vincenzo Librandi, Sep 25 2015 *)
|
|
PROG
|
(PARI) forprime(p=2, 1e3, if (isprime(3^p-2^p-2), print1(p, ", "))) \\ Altug Alkan, Sep 25 2015
(Magma) [p: p in PrimesUpTo(1000) | IsPrime(3^p-2^p-2)]; // Vincenzo Librandi, Sep 26 2015
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|