OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..1000
EXAMPLE
a(3) = 727 is a term because 727 = 3^6-2, 6 > 3 and 727 and 3 are prime.
MAPLE
N:= 10^12: # for terms <= N
R:= {}:
p:= 1:
do
p:= nextprime(p);
if p^4-2 > N then break fi;
for k from 4 to ilog[p](N) do
r:= p^k - 2;
if isprime(r) then R:= R union {r} fi;
od
od:
sort(convert(R, list));
PROG
(PARI) isok(p) = isprime(p) && (isprimepower(p+2) > 3); \\ Michel Marcus, Aug 16 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Aug 11 2021
STATUS
approved