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 A045717 #11 Sep 28 2013 03:16:31 %S A045717 1,1,5,11,38,50,95,113,176,306,336,506,623,665,800,1050,1330,1390, %T A045717 1710,1917,1989,2369,2612,3042,3693,3990,4092,4407,4515,4848,6408, %U A045717 6795,7465,7603,8899,9049,9819,10619,11114,11964,12844,13024,14698,14890,15475 %N A045717 For each prime p take the sum of nonprimes < p. %C A045717 Subsequence of A101203. - _Michel Marcus_, Sep 28 2013 %e A045717 For p=7 we get 1+4+6=11. %t A045717 nn=200;With[{np=Complement[Range[nn],Prime[Range[PrimePi[nn]]]]}, Table[ Total[Select[np,#<p&]],{p,Prime[Range[PrimePi[nn]]]}]] (* _Harvey P. Dale_, Jun 25 2013 *) %o A045717 (PARI) a(n) = {my(p = prime(n)); sum (i=1, p-1, i*(! isprime(i)));} \\ _Michel Marcus_, Sep 28 2013 %o A045717 (PARI) a(n)=my(p=prime(n),s=1); forcomposite(k=4,p,s+=k);k \\ _Charles R Greathouse IV_, Sep 28 2013 %Y A045717 Cf. A000040. %K A045717 nonn,easy %O A045717 1,3 %A A045717 _Felice Russo_ %E A045717 Corrected and extended by _Erich Friedman_.