OFFSET
1,1
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..10000
EXAMPLE
19 is prime and appears in the sequence because [19^3-2 = 6857] and [19^2-2 = 359] are both primes.
37 is prime and appears in the sequence because [37^3-2 = 50651] and [37^2-2 = 1367] are both primes.
MAPLE
MATHEMATICA
c = 0; t=Prime[n]; Do[If[PrimeQ[t^3 - 2] && PrimeQ[t^2 - 2], c++; Print[c, " ", t]], {n, 1, 3*10^6}];
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, May 28 2014
STATUS
approved