OFFSET
1,3
EXAMPLE
6*8^2 + 17 = 401 is prime, hence 8 is a term.
MAPLE
a:=proc(n) if isprime(6*n^2+17)=true then n else fi end: seq(a(n), n=0..150); # Emeric Deutsch, Apr 16 2007
MATHEMATICA
f[a_]:=6*a^2+17; lst={}; Do[If[PrimeQ[f[n]], AppendTo[lst, n]], {n, 0, 5!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jul 14 2009 *)
Select[Range[0, 200], PrimeQ[6#^2+17]&] (* Harvey P. Dale, Jun 03 2014 *)
PROG
(Magma) [ n: n in [0..113] | IsPrime(6*n^2+17) ]; /* Klaus Brockhaus, Apr 16 2007 */
(PARI) is(n)=isprime(6*n^2+17) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
nonn,less,easy
AUTHOR
J. M. Bergot, Apr 13 2007
EXTENSIONS
Edited and extended by Klaus Brockhaus and Emeric Deutsch, Apr 16 2007
STATUS
approved