login
Partial sum of A146538.
2

%I #10 Jun 04 2016 09:29:56

%S 6,18,36,58,82,112,144,180,222,268,316,368,422,482,544,610,682,756,

%T 834,916,1000,1088,1178,1270,1366,1468,1576,1688,1802,1918,2036,2156,

%U 2278,2404,2534,2666,2804,2944,3086,3230,3380

%N Partial sum of A146538.

%H Harvey P. Dale, <a href="/A152539/b152539.txt">Table of n, a(n) for n = 1..1000</a>

%t Accumulate[Select[2*Range[150],!PrimeQ[#+3]&]] (* _Harvey P. Dale_, Jun 04 2016 *)

%o (PARI) lista(nn) = {ps = 0; forstep (n=2, nn, 2, if (! isprime(n+3), ps += n; print1(ps, ", ")););} \\ _Michel Marcus_, Jun 04 2013

%Y Cf. A146538.

%K easy,nonn

%O 1,1

%A _Giovanni Teofilatto_, Dec 07 2008

%E More terms from _Michel Marcus_, Jun 04 2013