c# Programming Glossary: primearray
How do I implement the Sieve Of Eratosthenes using multithreaded C#? http://stackoverflow.com/questions/4700107/how-do-i-implement-the-sieve-of-eratosthenes-using-multithreaded-c public static int upperLimit 1000000000 public static bool primeArray new bool upperLimit static void Main string args DateTime startTime.. sieve4 new Sieve 999999999 for int i 3 i sqrtLimit i 2 if primeArray i true int squareI i i if squareI 249999999 sieve1.set.. sieve4.set i sieve4.thread.Join int count 0 primeArray 2 true for int i 2 i upperLimit i if primeArray i count..
|