OFFSET
1,1
COMMENTS
Begins to differ from A046034 at the 21st term (which is the first 3-digit term).
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
EXAMPLE
133 is in the sequence as the prime digits are 3 and 3 (those are two digits; counted with multiplicity) and one nonprime digit 1 and so there are more prime digits than nonprime digits. - David A. Corneth, Sep 06 2020
PROG
(PARI) is(n) = my(d = digits(n), c = 0); for(i = 1, #d, if(isprime(d[i]), c++)); c<<1 > #d \\ David A. Corneth, Sep 06 2020
(Python)
from itertools import count, islice
def A085557_gen(startvalue=1): # generator of terms
return filter(lambda n:len(s:=str(n))<(sum(1 for d in s if d in {'2', '3', '5', '7'})<<1), count(max(startvalue, 1)))
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Jason Earls, Jul 04 2003
STATUS
approved