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 #12 Sep 08 2022 08:45:13
%S 3,11,31,131,223,521,739,1741,3391,4931,5851,9283,24419,27031,32801,
%T 59359,68963,74131,85229,110641,148931,157519,175673,216061,328579,
%U 357983,405299,456611,571871,658591,857471,1061311,1124969,1259821
%N Primes of the form n^3 + n + 1.
%H Vincenzo Librandi, <a href="/A095692/b095692.txt">Table of n, a(n) for n = 1..1000</a>
%t f[n_]:=n^3+n+1; lst={};Do[If[PrimeQ[f[n]],AppendTo[lst,f[n]]],{n,5!}];lst (* _Vladimir Joseph Stephan Orlovsky_, Jul 27 2009 *)
%t Select[Table[n^3+n+1,{n,0,800}],PrimeQ] (* _Vincenzo Librandi_, Jul 17 2012 *)
%o (Magma) [a: n in [0..200] | IsPrime(a) where a is n^3+n+1]; // _Vincenzo Librandi_, Jul 17 2012
%Y Cf. A049407 (corresponding n).
%K nonn,easy
%O 1,1
%A _Giovanni Teofilatto_, Jul 06 2004
%E Edited by _Rick L. Shepherd_, Jul 07 2004