OFFSET
1,1
MATHEMATICA
lst={1}; p[1]=2; p[n_]:=p[n]=Module[{i=Last[lst]+1},
While[!PrimeQ[p[n-1]+i*(i-1)/2], i++]; AppendTo[lst, i]; p[n-1]+i*(i-1)/2];
p/@Range[50]
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Ivan N. Ianakiev, Nov 13 2016
STATUS
approved