OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1)=5 because 5=1^3+2^2;
a(2)=17 because 17=2^3+3^2;
a(3)=43 because 43=3^3+4^2.
MATHEMATICA
Select[Table[n^3+(n+1)^2, {n, 200}], PrimeQ] (* Vladimir Joseph Stephan Orlovsky, Feb 01 2012 *)
PROG
(Magma) [ a: n in [0..100] | IsPrime(a) where a is n^3 + (n+1)^2 ]; // Vincenzo Librandi, Jul 18 2012
(PARI) list(lim)=my(v=List(), t); for(n=1, lim, t=n^3+(n+1)^2; if(t>lim, break); if(isprime(t), listput(v, t))); Vec(v) \\ Charles R Greathouse IV, Dec 23 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Giovanni Teofilatto, Jan 03 2005
EXTENSIONS
More terms from Mark Hudson, Jan 04 2005
STATUS
approved