OFFSET
1,1
COMMENTS
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..1785
EXAMPLE
31 is prime and appears in the sequence because [31^6 -31^5 + 1 = 858874531] and [31^6 -31^5 - 1 = 858874529] are both primes.
181 is prime and appears in the sequence because [181^6 -181^5 + 1 = 34967564082181] and [181^6 -181^5 - 1 = 34967564082179] are both primes.
MAPLE
MATHEMATICA
c = 0; a = 2; Do[k = Prime[n]; If[PrimeQ[k^6 - k^5 + 1] && PrimeQ[k^6 - k^5 - 1], c++; Print[c, " ", k]], {n, 1, 2000000}];
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Jun 06 2014
STATUS
approved