From: pneyz Newsgroups: comp.os.msdos.djgpp Subject: Re: 8 Byte Integer Date: Sat, 07 Feb 1998 12:50:14 -0800 Organization: Smoof Team Lines: 20 Message-ID: <34DCC906.96B7BA17@bethany.edu> References: <3 DOT 0 DOT 32 DOT 19980207131923 DOT 0083a980 AT dataplusnet DOT com> NNTP-Posting-Host: scz-ca18-01.ix.netcom.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk > 1 byte: –128 to 127 > 2 byte: –32,768 to 32,767 > 4 byte: –2,147,483,648 to 2,147,483,647 > 8 byte: –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 > > I am doing a program that calculates prime numbers, so the bigger the > better. Is there any way I can get a 4 or 8 byte integer in DJGPP? Well, seeing as how DJGPP ints are already 4 bytes, you shouldn't have any trouble. For 8 byte ints, try: long long PrimeNumberVariable; You might even want to make it unsigned for really big values. -- /* pneyz / Smoof Team pneyz AT bethany DOT edu "Fine Malt Coding" http://ns.bethany.edu/pneyz/ */