title: The use of LinkedList<BigInteger>
body: <p>I've been struggling for a while now with an error I can't fix.<br>
  I searched the Internet without any success and started wandering if it is possible what I want to accomplish.</p>
  
  <p>I want the create an array with the a huge amount of nodes, so huge that it I need BigInteger.<br>
  I founded that <code>LinkedList</code> would fit my solution the best, so I started with this code.</p>
  
  <pre><code>BigInteger[] numberlist = { 0, 1 };
  LinkedList&lt;BigInteger&gt; number = new LinkedList&lt;BigInteger&gt;(numberlist);
  for(c = 2; c &lt;= b; c++) 
  {
      numberlist [b] = 1;                  /* flag numbers to 1 */
  }
  </code></pre>
  
  <p>The meaning of this is to set all nodes in the linkedlist to active (1).<br>
  The vars c and b are bigintegers too.<br>
  The error I get from VS10 is :</p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'System.Numerics.BigInteger' to 'int'. An explicit conversion exists (are you missing a cast?)</p>
  </blockquote>
  
  <p>The questions:</p>
  
  <ol>
  <li>Is it possible to accomplish?</li>
  <li>How can I flag all nodes in number with the use of BigInteger (not int)?</li>
  <li>Is there an other better method for accomplishing the thing?</li>
  </ol>
  
  <p><strong>UPDATE</strong><br>
  In the example I use c++ as the counter. This is variable though...<br>
  The node list could look like this:</p>
  
  <pre><code>numberlist[2]
  numberlist[3]
  numberlist[200]
  numberlist[20034759044900]
  numberlist[23847982344986350]
  </code></pre>
  
  <p>I'll remove processed nodes. At the maximum I'll use 1,5gb of memory.<br>
  Please reply on this update, I want to know whether my ideas are correct or not.<br>
  Also I would like too learn from my mistakes!</p>