OFFSET
1,1
COMMENTS
Equivalently, primes of the form 2n^2 + 3n + 3, generated by the n in A096689.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
f[n_]:=n^2+(n+1)^2+(n+2); lst={}; Do[p=f[n]; If[PrimeQ[p], AppendTo[lst, p]], {n, 0, 6!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jul 04 2009 *)
Select[Table[2*n^2+3*n+3, {n, 0, 2000}], PrimeQ] (* Vincenzo Librandi, Jul 17 2012 *)
Select[#[[1]]^2+#[[2]]^2+#[[3]]&/@Partition[Range[0, 300], 3, 1], PrimeQ] (* Harvey P. Dale, Apr 01 2023 *)
PROG
(Magma) [a: n in [0..300] | IsPrime(a) where a is 2*n^2 + 3*n + 3]; // Vincenzo Librandi, Jul 17 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Giovanni Teofilatto, Jul 06 2004
EXTENSIONS
Extended by Ray Chandler, Jul 12 2004
STATUS
approved