OFFSET
1,1
COMMENTS
2^3 + 2^2 - 1 = 11, 2^3 + 2^2 + 1 = 13
MATHEMATICA
lst={}; Do[p=Prime[n]; a=p^2; b=p^3; c=b+a; If[PrimeQ[c-1]&&PrimeQ[c+1], AppendTo[lst, p]], {n, 2*7!}]; lst
ppQ[n_]:=Module[{c=n^3+n^2}, And@@PrimeQ[c+{1, -1}]]; Select[Prime[Range[ 2100]], ppQ] (* Harvey P. Dale, Jan 18 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, May 29 2009
EXTENSIONS
Edited by Charles R Greathouse IV, Nov 11 2009
STATUS
approved