Path: newsspool2.news.pas.earthlink.net!stamper.news.pas.earthlink.net!elnk-nf2-pas!newsfeed.earthlink.net!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Message-ID: From: Jason628@hotmail.com (Jason Rodgers) Newsgroups: sci.math Subject: Re: Last Call For Primecounters Date: 15 Sep 2003 17:59:17 -0700 References: Lines: 90 Organization: http://groups.google.com/ NNTP-Posting-Host: 68.47.81.114 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1063673958 21041 127.0.0.1 (16 Sep 2003 00:59:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 Sep 2003 00:59:18 GMT X-Received-Date: Mon, 15 Sep 2003 17:59:19 PDT (newsspool2.news.pas.earthlink.net) Xref: lexi2.athghost7038suus.net sci.math:38183 Here is mine. I know it is not the fastest but it still beats my old code. ------------------- class bit { char *bitarray; char list[8]; public: bit(unsigned long long length) { length=(length+1)/8; bitarray=new char[length]; for(unsigned long long i=0;i #include inline unsigned long long pi(unsigned long long); int main (int argc, const char * argv[]) { using namespace std; //introduces namespace std const unsigned long long n = 3900000; std::cout<<"Pi("<