OFFSET
1,1
MATHEMATICA
Select[Range[1000], PrimeQ[#] && Divisible @@ DigitCount[{#, PrimePi[#]}, 2, 1] &] (* Amiram Eldar, Jun 14 2021 *)
PROG
(PARI) isok(p) = isprime(p) && ((hammingweight(p) % hammingweight(primepi(p))) == 0); \\ Michel Marcus, Jun 14 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Ctibor O. Zizka, Jun 14 2021
STATUS
approved