OFFSET
1,2
REFERENCES
Dubner, Harvey. "Generalized Fermat primes." J. Recreational Math., 18 (1985): 279-280.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Ray Chandler, Table of n, a(n) for n = 1..10000 (first 1000 terms from T. D. Noe)
MATHEMATICA
lst={}; Do[If[PrimeQ[n^16+1], AppendTo[lst, n]], {n, 10^4}]; lst (* Vladimir Joseph Stephan Orlovsky, Aug 20 2008 *)
s=Reap[Sow[1]; Do[If[PrimeQ[n^16+1], Sow[n]], {n, 2, 40352, 2}]][[2, 1]] (* Zak Seidov, Dec 22 2010 *)
Join[{1}, 2*Flatten[Position[Range[2, 1100, 2]^16+1, _?PrimeQ]]] (* Harvey P. Dale, Jun 26 2017 *)
PROG
(PARI) isA006313(n) = isprime(n^16+1) \\ Michael B. Porter, Mar 25 2010
(Magma) [ n: n in [0..1500] | IsPrime(n^16+1) ]; // Vincenzo Librandi, Nov 18 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Hugo Pfoertner, Jun 22 2003
STATUS
approved