Skip to main content
Chop 1 char by removing quotes and using 49 to represent '1'
Source Link

C# 3938 bytes

Convert.ToString(X,2).Count(C=>C=='1'C=>C==49);

C# 39 bytes

Convert.ToString(X,2).Count(C=>C=='1');

C# 38 bytes

Convert.ToString(X,2).Count(C=>C==49);
Source Link
sbecker
  • 111
  • 3

C# 39 bytes

Convert.ToString(X,2).Count(C=>C=='1');