OFFSET
1,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000 (first 102 terms from Zak Seidov)
MAPLE
select(p -> isprime(p) and isprime(1+p+p^2+p^3+p^4+p^5+p^6), [2, seq(i, i=3..10000, 2)]); # Robert Israel, May 05 2017
MATHEMATICA
f[n_]:=1+n+n^2+n^3+n^4+n^5+n^6; lst={}; Do[p=Prime[n]; If[PrimeQ[f[p]], AppendTo[lst, p]], {n, 7!}]; lst
Select[Prime[Range[500]], PrimeQ[Total[#^Range[0, 6]]]&] (* Harvey P. Dale, Jul 13 2022 *)
PROG
(PARI) n=0; forprime(p=2, 10000, isprime((p^7-1)/(p-1))&&print(n++" "p))\\ Zak Seidov, Mar 09 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jul 24 2009
EXTENSIONS
Edited (but not checked) by N. J. A. Sloane, Jul 25 2009
STATUS
approved