I need a way to store and very efficiently retrieve the first 3512 primes in C#. As far as I know I would use an int array.
I have not been able to find a comma-separated开发者_开发百科 listing of the first 3512 primes. What can I do to find/create such a list to paste in for the array, other than rolling my own prime generator?
Generating 3512 would be fairly easy and quick, but you can find lists pretty easily. Here's a list of the first 50,000 primes that would be easy to import or read in.
精彩评论