login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A268476 Balanced evil primes: primes with an even number of runs of 1's in their binary expansion. 4
5, 11, 13, 17, 19, 23, 29, 47, 59, 61, 67, 71, 79, 97, 103, 113, 131, 149, 173, 181, 191, 193, 199, 223, 227, 239, 241, 251, 257, 263, 271, 277, 293, 331, 337, 347, 349, 373, 383, 421, 449, 463, 479, 487, 499, 503, 509, 557, 587, 593, 599, 601, 613, 617, 619 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

Primes in A268412. Complement of A268477.

LINKS

Chai Wah Wu, Table of n, a(n) for n = 1..10000

Vladimir Shevelev, Two analogs of Thue-Morse sequence, arXiv:1603.04434 [math.NT], 2016.

MATHEMATICA

Select[Prime@ Range@ 120, EvenQ@ Length[Split@ IntegerDigits[#, 2] /. {0, ___} -> Nothing] &] (* Michael De Vlieger, Feb 08 2016 *)

PROG

(Python)

from sympy import prime

A268476_list = [p for p in (prime(i) for i in range(1, 10**6)) if not len(list(filter(bool, format(p, 'b').split('0')))) % 2] # Chai Wah Wu, Mar 01 2016

CROSSREFS

Cf. A027699, A268412, A268477.

Sequence in context: A156312 A172988 A020604 * A082554 A141246 A288445

Adjacent sequences:  A268473 A268474 A268475 * A268477 A268478 A268479

KEYWORD

nonn,base

AUTHOR

Vladimir Shevelev, Feb 05 2016

EXTENSIONS

More terms from Peter J. C. Moses, Feb 05 2016

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 22:08 EDT 2019. Contains 322237 sequences. (Running on oeis4.)