OFFSET
1,1
LINKS
Andreas Boe, Table of n, a(n) for n = 1..10000
EXAMPLE
613 -> 6+1+3=10, 613 = 1001100101_2 (10 bits), so 613 is a term.
MATHEMATICA
Select[Prime[Range[1200]], DigitCount[#, 10, 0]==0&&IntegerLength[ #, 2] == Total[ IntegerDigits[#]]&] (* Harvey P. Dale, Jan 12 2019 *)
PROG
(PARI) isok(n) = isprime(n) && (sumdigits(n) == #binary(n)) && (vecmin(digits(n)) != 0); \\ Michel Marcus, Jun 08 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Andreas Boe, Jun 07 2014
STATUS
approved