开发者

Where can I find a large list of primes for an array literal?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜