OFFSET
1,1
FORMULA
EXAMPLE
2^3+2^2 = 12, and 12-+1 are primes, so 12 is a term.
MATHEMATICA
lst={}; Do[k=n^3+n^2; If[PrimeQ[k-1]&&PrimeQ[k+1], AppendTo[lst, k]], {n, 8!}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jan 14 2009
STATUS
approved