smallest number with all set bits
Code


# Code
```python3 []
class Solution:
    def smallestNumber(self, n: int) -> int:
        f=True
        ans=0
        temp=n
        while(f):
            b=bin(temp)[2:]
            if b.count('1')==len(b):
                ans=temp
                f=False
            temp+=1
        return ans
```
['Python3']