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!)
A168161 Primes p which are equal to the sum of the binary digits in all primes <= p. 6
3, 5, 11, 19, 23, 47, 61 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
A subsequence of A168162.
LINKS
FORMULA
A168161 = { prime p | p=A095375(pi(p)) }, where pi(n) = A000720(n).
MATHEMATICA
sbdQ[n_]:=Total[Flatten[IntegerDigits[#, 2]&/@Prime[Range[PrimePi[ n]]]]] == n; Select[Prime[Range[20]], sbdQ] (* Harvey P. Dale, Feb 04 2015 *)
PROG
(PARI) s=0; forprime(p=1, 9999, if(p==s+=norml2(binary(p)), print1(p, ", ")))
CROSSREFS
Sequence in context: A089439 A122516 A243899 * A217792 A284036 A172438
KEYWORD
fini,full,nonn,base
AUTHOR
M. F. Hasler, Nov 22 2009
EXTENSIONS
Cross reference added by Harvey P. Dale, Mar 26 2013
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 April 19 05:02 EDT 2024. Contains 371782 sequences. (Running on oeis4.)