OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..620
MATHEMATICA
Do[If[PrimeQ[1 + n + n^3 + n^5 + n^7 + n^9 + n^11 + n^13 + n^15 + n^17 + n^19 + n^21 + n^23 + n^25 + n^27 + n^29 + n^31 + n^33 + n^35 + n^37 + n^39 + n^41 + n^43], Print[n]], {n, 1, 2400}]
Select[Range[6000], PrimeQ[Total[#^Range[1, 43, 2]] + 1] &] (* Vincenzo Librandi, Jun 28 2014 *)
PROG
(Magma) [n: n in [0..5000] | IsPrime(s) where s is 1+&+[n^i: i in [1..43 by 2]]]; // Vincenzo Librandi, Jun 28 2014
(PARI) is(n)=isprime(1+n+n^3+n^5+n^7+n^9+n^11+n^13+n^15+n^17+n^19+n^21+n^23 + n^25+n^27+n^29+n^31+n^33+n^35+n^37+n^39+n^41+n^43) \\ Charles R Greathouse IV, Feb 20 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Dec 13 2006
STATUS
approved