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 + n^11 + n^13], Print[n]], {n, 1, 300}]
Select[Range[8000], PrimeQ[Total[#^Range[1, 13, 2]] + 1] &] (* _Vincenzo Librandi_, Jun 28 2014 *)
PROG
(Magma) [n: n in [0..3000]| IsPrime(1 + n + n^3 + n^5 + n^7+ n^9 + n^11 + n^13 )]; // _Vincenzo Librandi_, Nov 12 2010
(Magma) [n: n in [0..3000] | IsPrime(s) where s is 1+&+[n^i: i in [1..13 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) \\ _Charles R Greathouse IV_, Feb 20 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
_Artur Jasinski_, Dec 13 2006
STATUS
approved