```
/**
* @param {number} n - a positive integer
* @return {number}
*/
var hammingWeight = function(n) {
var i=0;
while(n!==0){
i = i + (n&1);
n >>> 1;
}
return i;
};
```

Time Limit Exceeded

Last executed input: 1 (00000000000000000000000000000001)