count ones

CSharp · Script

/Program.cs

using System;
using System.Linq;
Console.WriteLine(

Convert.ToString((ushort)1337,2).Sum(b=>b-48)

);
;