OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
Module[{nn=100, comps}, comps=Complement[Range[4, nn], Prime[ Range[ PrimePi[ nn]]]]; Select[Accumulate[comps], !PrimeQ[#]&]] (* Harvey P. Dale, May 21 2014 *)
PROG
(PARI) isok(c) = if ((c>1) && !isprime(c), my(s=0); forcomposite(x=1, oo, s+=x; if (s == c, return(1)); if (s > c, return(0)))); \\ Michel Marcus, Nov 25 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from David W. Wilson
Name edited by Michel Marcus, Nov 25 2022
STATUS
approved