title: MemoryError in python(List)
body: <p>I want to use an array or a list , but with  987654321 items.</p>
  
  <p>The problem is that I get an error , <code>Memoryerror</code></p>
  
  <p>My code looks as follows:</p>
  
  <pre><code>list = [0]*987654321
  for i in range(1, list, 1):
          tableau.append(1)
  </code></pre>
  
  <p>How can i fix it,thank you</p>
  
  <p><strong>Edit</strong></p>
  
  <p>The purpose that i want to use this huge list is that i want to generate all prime number less than 987654321 , and i'm trying to use the 
  sieve of eratosthenes</p>