Daniel Skiles <dskiles@gmail.com> writes: > Hey all, > Here is the nsieve g++ c++ test, written with dev c++ on win32. Let > me know if there's anything wrong with it. [...] > flags = new bool[m]; > cout << "Primes up to " << m << " " << nsieve(m, flags) << endl; > delete flags; Memory allocated by new[] is not zeroed. Also, you need delete[] to free it. -- Falk