The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A085557 Numbers that have more prime digits than nonprime digits. 5
2, 3, 5, 7, 22, 23, 25, 27, 32, 33, 35, 37, 52, 53, 55, 57, 72, 73, 75, 77, 122, 123, 125, 127, 132, 133, 135, 137, 152, 153, 155, 157, 172, 173, 175, 177, 202, 203, 205, 207, 212, 213, 215, 217, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Begins to differ from A046034 at the 21st term (which is the first 3-digit term).
LINKS
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)))
A085557_list = list(islice(A085557_gen(), 20)) # Chai Wah Wu, Feb 08 2023
CROSSREFS
Sequence in context: A024768 A024769 A340112 * A125665 A046034 A062087
KEYWORD
nonn,easy,base
AUTHOR
Jason Earls, Jul 04 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 9 15:27 EDT 2024. Contains 373244 sequences. (Running on oeis4.)