This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A108018 #15 Mar 12 2019 09:20:35 %S A108018 1,3,4,5,9,12,16,19,25,31,37,43,51,59,66,75,84,95,103,115,127,137,150, %T A108018 162,177,191,205,218,233,250,267,282,299,319,338,359,376,399,421,440, %U A108018 461,481,508,531,556,578,602,629,653,683,707,737,765,793,824,853,883 %N A108018 a(n) = the number of primes representable as the sum of some subset of the set of first n primes. %C A108018 a(n) = length of n-th row in A256015; A066028(n) = A256015(n,a(n)). - _Reinhard Zumkeller_, Jun 01 2015 %H A108018 Alois P. Heinz, <a href="/A108018/b108018.txt">Table of n, a(n) for n = 1..500</a> %t A108018 (* This program is not suitable to compute a large number of terms. *) %t A108018 a[n_] := a[n] = Select[Total /@ Subsets[Table[Prime[i], {i, 1, n}]], PrimeQ] // Union // Length; %t A108018 Table[Print[n, " ", a[n]]; a[n], {n, 1, 25}] (* _Jean-François Alcover_, Mar 12 2019 *) %o A108018 (Haskell) %o A108018 import Data.List (subsequences, nub) %o A108018 a108018 = sum . map a010051' . nub . map sum . %o A108018 tail . subsequences . flip take a000040_list %o A108018 -- _Reinhard Zumkeller_, Dec 16 2013 %Y A108018 Cf. A071810 (same count but with multiplicities). %Y A108018 Cf. A010051, A000040. %Y A108018 Cf. A066028, A256015. %K A108018 nonn %O A108018 1,2 %A A108018 _Max Alekseyev_, Sep 08 2006 %E A108018 More terms from _Alois P. Heinz_, Oct 24 2015