OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
Do[If[PrimeQ[1 + n + n^3 + n^5 + n^7], Print[n]], {n, 1, 1000}]
Select[Range[1000], PrimeQ[1+#+#^3+#^5+#^7]&] (* Harvey P. Dale, Jul 16 2013 *)
Select[Range[1000], PrimeQ[Total[#^Range[1, 7, 2]] + 1] &] (* Vincenzo Librandi, Jun 27 2014 *)
PROG
(Magma) [n: n in [0..900] | IsPrime(s) where s is 1+&+[n^i: i in [1..7 by 2]]]; // Vincenzo Librandi, Jun 27 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Dec 13 2006
STATUS
approved