Clearing the most significant bit from an integer Input
The input is a single positive integer n
Output
The output isn with its most significant bit set to 0.
Test Cases
1 -&gt; 0
2 -&gt; 0
10 -&gt; 2
16 -&gt; 0
100 -&gt; 36
267 -&gt; 11
350 -&gt; 94
500 -&gt; 244

For example: 350 in binary is 101011110. Setting its most significant bit (i.e. the leftmost 1 bit) to 0 turns it into 001011110 which is equivalent to the decimal integer 94, the output. This is OEIS A053645.
C (gcc), 49 44 40 39 bytes



i;f(n){for(i=1;n/i;i*=2);return n^i/2;}


Try it online!