A376683 Antidiagonal-sums of the array A376682(n,k) = n-th term of the k-th differences of the noncomposite numbers (A008578).
1, 3, 4, 9, 6, 27, -20, 109, -182, 471, -868, 1737, -2872, 4345, -4700, 1133, 14060, -55275, 150462, -346093, 717040, -1369351, 2432872, -4002905, 5964846, -7524917, 6123130, 4900199, -40900410, 134309057, -348584552, 798958881, -1678213106, 3277459119
Offset: 0
Keywords
Examples
The fourth anti-diagonal of A376682 is: (7, 2, 0, -1, -2), so a(4) = 6.
Programs
-
Mathematica
nn=12; t=Table[Take[Differences[NestList[NestWhile[#+1&,#+1,!PrimeQ[#]&]&,1,2*nn],k],nn],{k,0,nn}]; Total/@Table[t[[j,i-j+1]],{i,nn},{j,i}]