1 of 2
Mr. Xcoder
  • 42.4k
  • 9
  • 79
  • 214

Proton, 40 bytes

x=>y=>sum(bin(i).count("1")for i:x..y+1)

Try it online!

Mr. Xcoder
  • 42.4k
  • 9
  • 79
  • 214