title: Reducing time complexity of the code (max execution time is 16000 ms)
body: <p>Can someone help me out how to reduce time complexity of this code. Max execution time is 16000 ms.</p>
  <pre><code>public class count {
  
      public static void main(String[] args) {
          long c = 0;
          
          for(long i=1L;i&lt;=200000000000000L;i++) {
              c+=Long.bitCount((i));
          }
          
          System.out.println(c);
      }
  }
  </code></pre>