OFFSET
1,2
COMMENTS
For s = 5,8,11,14,17,20,..., n_s = 1 + n + n^s is always composite for any n > 1. Also for n=1, n_s=3 is a prime for any s. Here we consider the case s=4.
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
EXAMPLE
26 is a term because at s=4, n=26, n_s = 1 + n + n^s = 457003 is a prime.
MATHEMATICA
Select[Range[1000], PrimeQ[1 + # + #^4] &] (* Vincenzo Librandi, Jul 28 2014 *)
PROG
(PARI) for(n=1, 1000, if(isprime(1+n+n^4), print1(n", ")))
(Magma) [n: n in [0..1000] | IsPrime(s) where s is 1+n+n^4]; // Vincenzo Librandi, Jul 28 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved