OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
3^3-4^2=27-16=11, 5^3-6^2=125-36=89, 6^3-7^2=216-49=167,...
MAPLE
R:= NULL: count:= 0:
for n from 2 while count < 100 do
p:= n^3 - (n+1)^2;
if isprime(p) then
count:=count+1; R:= R, p;
fi
od:
R; # Robert Israel, Oct 19 2021
MATHEMATICA
Select[ #^3 - (# + 1)^2 & /@ Range[2, 140], PrimeQ@ # &] (* Robert G. Wilson v, Aug 17 2008 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jul 11 2008
EXTENSIONS
More terms from Robert G. Wilson v, Aug 17 2008
STATUS
approved