title: Extend Enumerable.Range
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1520136/enumerable-range-implementation">Enumerable.Range implementation</a>  </p>
  </blockquote>
  
  
  
  <p>I ran into an issue where i need to add a very long value (<code>Int64</code>) into a list, The value is 600851475143, i want to create a <code>List&lt;Int64&gt;</code> that contains all the int upto this value, but <code>Enumerable.Range</code> has a limitation that in the count parameter, it accept only int values, as i am far from that value, i decided to loop through the list and and all those values, but my system soons run out of memory, what should i do?</p>
  
  <pre><code>List&lt;int64&gt; lst = new List&lt;int64&gt;();
  
  for (Int64 i = 3; i &lt; 600851475143; i=i+2)
  {
      lst.Add(i);
  }
  </code></pre>
  
  <p>Thanks</p>