Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #22 Aug 02 2023 14:24:02
%S 1,2,3,4,5,6,7,8,9,16,17,18,19,28,29
%N Numbers k whose digital sum is greater than the number of primes up to k (inclusive).
%F { k : A007953(k) > A000720(k) }.
%e There are 10 primes that do not exceed 29, and the sum of digits of 29 is 11. Thus 29 is in this sequence.
%e There are 9 primes that do not exceed 27, and the sum of digits of 27 is also 9. Thus 27 is not in this sequence.
%t Select[Range[2000], Total[IntegerDigits[#]] > PrimePi[#] &]
%Y Cf. A000720, A007953.
%K nonn,base,full,fini
%O 1,2
%A _Tanya Khovanova_, Jul 29 2023