![]() |
|||
|
About Article
Alternative to Find Prime Numbers in C# Using the Sieve of Eratosthenes
Here's an alternative. This one uses the BitArray class in C# and does not use the % operator.static List SeiveWithoutMod(int candidate){ BitArray sieveContainer = new BitArray(candidate + 1, true); int marker = 2; //start int factor = 2; //start. sieveContainer[0]...
Top News
The Next Version of Android - Some of What's Coming Get the Insider News free each morning.Related Videos
Related Articles
|
||||||||||||||