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 A085980 #14 Jan 10 2023 05:06:37 %S A085980 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, %T A085980 0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0, %U A085980 0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,0 %N A085980 Number of 6's in decimal expansion of prime(n). %H A085980 Reinhard Zumkeller, <a href="/A085980/b085980.txt">Table of n, a(n) for n = 1..10000</a> %t A085980 Table[DigitCount[n,10,6],{n,Prime[Range[110]]}] (* _Harvey P. Dale_, Mar 20 2018 *) %o A085980 (Haskell) %o A085980 a085980 = count6 0 . a000040 where %o A085980 count6 c x | d == 6 = if x < 10 then c + 1 else count6 (c + 1) x' %o A085980 | otherwise = if x < 10 then c else count6 c x' %o A085980 where (x', d) = divMod x 10 %o A085980 -- _Reinhard Zumkeller_, Apr 08 2014 %Y A085980 Cf. 0's A085974, 1's A085975, 2's A085976, 3's A085977, 4's A085978, 5's A085979, 7's A085981, 8's A085982, 9's A085983. %K A085980 base,nonn %O A085980 1,121 %A A085980 _Jason Earls_, Jul 06 2003