$N= \frac{1023(1023+1)}{2} – (2+3+11+17+31) = 1023 \times 512 – 64 = (2^{10} – 1)2^9 – 2^6$
$ N= 2^6((2^{10} – 1)2^3 – 1)$
$\text{$2^{10}$ – 1 has binary representation 0000000001111111111 (10 times 1s)}$
$\text{$(2^{10} – 1)2^3$ has binary representation 0000001111111111000}$
$\text{(shifted $3$ bits left because $2^3$ is multiplied)}$
$\text{$(2^{10} – 1)2^3 – 1$ has binary representation 0000001111111110111}$
$\text{$2^6((2^{10} – 1)2^3 – 1)$ has binary representation 1111111110111000000}$
$\text{(shifted $6$ bits left because $2^6$ is multiplied)}$
$\text{$N = 523712 = 1111111110111000000$}$
$\textbf{Answer: (E)}$