title: Getting memory problem when trying to generate a 2exp(40) matrix
body: <p>I am trying to generate all possible binary numbers of length 40, so i used this code:</p>
  
  <pre><code>l = list(itertools.product([0, 1], repeat=40))
  </code></pre>
  
  <p>but i get a memory problem where the process was killed, and i am using a powerful machine with 64GB RAM, so is there any solution to this problem ?</p>