OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
Do[If[PrimeQ[1 + n + n^3 + n^5 + n^7 + n^9], Print[n]], {n, 1, 300}]
Select[Range[2000], PrimeQ[Total[#^Range[1, 9, 2]] + 1] &] (* Vincenzo Librandi, Jun 27 2014 *)
PROG
(Magma) [n: n in [0..1500]| IsPrime(1 + n + n^3 + n^5 + n^7+ n^9 )]; // Vincenzo Librandi, Nov 13 2010
(Magma) [n: n in [0..1200] | IsPrime(s) where s is 1+&+[n^i: i in [1..9 by 2]]]; // Vincenzo Librandi, Jun 27 2014
(PARI) is(n)=isprime(1+n+n^3+n^5+n^7+n^9) \\ Charles R Greathouse IV, Feb 20 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Dec 13 2006
STATUS
approved