OFFSET
1,1
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..5457
EXAMPLE
31 appears in the sequence because it is prime and 31^6 - 31^5 + 1 = 858874531 is also prime.
73 appears in the sequence because it is prime and 73^6 - 73^5 + 1 = 149261154697 is also prime.
MAPLE
MATHEMATICA
c=0; Do[k=Prime[n]; If[PrimeQ[k^6-k^5+1], c++; Print[c, " ", k]], {n, 1, 200000}];
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Jun 05 2014
STATUS
approved