Cumulative sum of the squares of nonprimes.
0, 1, 17, 53, 117, 198, 298, 442, 638, 863, 1119, 1443, 1843, 2284, 2768, 3344, 3969, 4645, 5374, 6158, 7058, 8082, 9171, 10327, 11552, 12848, 14292, 15813, 17413, 19177, 21113, 23138, 25254, 27558, 29959, 32459, 35060, 37764, 40680, 43705, 46841, 50090
1
T. D. Noe, Plot of 1000 terms
T. D. Noe, Table of 1000 terms
(Mma) nn = 20; ps = Complement[Range[0, Prime[nn]], Prime[Range[nn]]]; Accumulate[ps^2]
Cf. A018252 (nonprimes), A051349 (cumulative sum of nonprimes), S000084, S000085, S000086.
nonn
T. D. Noe, Jun 16 2014