Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #13 Sep 08 2022 08:45:40
%S 2,4,8,10,12,14,18,22,34,42,44,48,56,62,64,76,78,80,88,90,100,102,116,
%T 130,134,136,144,146,154,162,168,184,186,212,222,226,230,234,238,248,
%U 260,264,270,282,284,288,300,310,314,316,350,356,378,400,404,418,424
%N Numbers n such that n^3+2*n^2+1 is prime.
%H Vincenzo Librandi, <a href="/A155037/b155037.txt">Table of n, a(n) for n = 1..1000</a>
%e For n=2, n^3+2*n^2+1=17; n=48, n^3+2*n^2+1=115201.
%t Select[Range[0, 500],PrimeQ[#^3+2#^2+1]&] (* _Vincenzo Librandi_, Sep 24 2012 *)
%o (Magma) [n: n in [0..450] | IsPrime(n^3+2*n^2+1)]; // _Vincenzo Librandi_, Sep 24 2012
%o (PARI) is(n)=isprime(n^3+2*n^2+1) \\ _Charles R Greathouse IV_, Jun 13 2017
%K nonn,easy
%O 1,1
%A _Vincenzo Librandi_, Jan 19 2009