OFFSET
1,1
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1)=2^3-2^2+1=5. a(2)=3^3-3^2+1=19. a(3)=5^3-5^2+1=101.
MATHEMATICA
lst={}; Do[s=n^3-n^2; If[PrimeQ[s+1], AppendTo[lst, s+1]], {n, 4*5!}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jun 30 2009
EXTENSIONS
Edited by R. J. Mathar, Jul 02 2009
STATUS
approved