editing
approved
editing
approved
# second Maple program:
q:= n-> isprime(nops(select(isprime, convert(n, base, 10)))):
select(q, [$1..500])[]; # Alois P. Heinz, Feb 08 2023
proposed
editing
editing
proposed
(Python)
from itertools import count, islice
from sympy import isprime
def A092619_gen(startvalue=1): # generator of terms >= startvalue
return filter(lambda n:isprime(sum(1 for d in str(n) if d in {'2', '3', '5', '7'})), count(max(startvalue, 1)))
A092619_list = list(islice(A092619_gen(), 20)) # Chai Wah Wu, Feb 08 2023
approved
editing
proposed
approved
editing
proposed
Upper relative density in the primes is 1; lower relative density in the primes is 0. [From _- _Charles R Greathouse IV_, Nov 14 2010]
22 has two prime digits and their number 2 is prime, so 22 is a term.
222 has three prime digits and their number 3 is prime, so 222 is a term.
approved
editing
Select[Range[250], PrimeQ[Count[IntegerDigits[#], _?PrimeQ]]&] (* From _Harvey P. Dale, _, Nov 29 2011 *)
Upper relative density in the primes is 1; lower relative density in the primes is 0. [From _Charles R Greathouse IV, _, Nov 14 2010]
_Jani Melik (jani_melik(AT)hotmail.com), _, Apr 11 2004