OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
In binary representation 13 and A000040(13)=41 have three 1's: 13='1101' and 41='101001', therefore 41 is a term.
MATHEMATICA
Prime[Select[Range[400], DigitCount[#, 2, 1] == DigitCount[Prime[#], 2, 1] &]] (* Amiram Eldar, Aug 03 2023 *)
PROG
(PARI) isok(p) = isprime(p) && ((hammingweight(p) == hammingweight(primepi(p)))); \\ Michel Marcus, Jun 14 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jun 17 2002
STATUS
approved