OFFSET
1,3
LINKS
G. L. Honaker, Jr. and Chris Caldwell, Prime Curios! 11
Wikipedia, Knapsack problem
EXAMPLE
a(11) = 4 because prime(11) = 31 = 2 + 3 + 7 + 19, but 31 is not a sum of 5 or more distinct primes.
MATHEMATICA
nn = 20; p = Prime[Range[nn]]; s = Subsets[p]; t2 = Table[Select[s, Total[#] == n &], {n, p}]; Table[Max[Length /@ t2[[n]]], {n, nn}] (* T. D. Noe, Nov 13 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Arkadiusz Wesolowski, Nov 10 2013
STATUS
approved