OFFSET
1,1
EXAMPLE
a(1)=(nextprime(1)+2)(nextprime(2)+1)/2=(2+2)(3+1)/2=8
a(2)=(nextprime(2)+3)(nextprime(3)+2)/2=(3+3)(5+2)/2=21.
MATHEMATICA
Table[(NextPrime[n]+n+1)(NextPrime[n+1]+n)/2, {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Jul 24 2010
STATUS
approved