473,395 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

bignums.h

I'm making a prime-generating program, and due to the nature of primes,
this program will need to handle very large numbers. I've googled around a
bit and found I need a header called bignums.h, but for the life of me
I've been unable to find it. Does anybody have a specific location from
which I may download this header.

More generally, is there a C header repository that I can access that
would prevent me from needing to bring this to usenet. Thanks.

Chris
Nov 14 '05 #1
9 1929
On Tue, 19 Oct 2004 19:43:30 -0500, Chris Johnson <ef******@gmail.com>
wrote:
I'm making a prime-generating program, and due to the nature of primes,
this program will need to handle very large numbers. I've googled around a
bit and found I need a header called bignums.h, but for the life of me
I've been unable to find it. Does anybody have a specific location from
which I may download this header.

More generally, is there a C header repository that I can access that
would prevent me from needing to bring this to usenet. Thanks.


With C, I doubt you can do much with "bignums.h" alone - you need a library
to go with it.

Try a google search for "Arbitrary Precision library" - the first links you
find point to the "GNU MP Precision Library" and the "Fracting Arbitrary
Precision Library".
Nov 14 '05 #2
>I'm making a prime-generating program, and due to the nature of primes,
this program will need to handle very large numbers. I've googled around a
bit and found I need a header called bignums.h, but for the life of me
I've been unable to find it. Does anybody have a specific location from
which I may download this header.


This header is part of a program I wrote for producing large banners
a long time ago. It puts one character of the message on roughly
two adjacent pieces of 11" x 17" line printer paper, or optionally
on a carefully assembled array of three pages by six pages per
character. Normally you put the whole banner on the outside of the
top floor of a dorm so it's readable from the other side of the
Quad or a street, with a message like "IMPEACH Nixon!".

Did you PIRATE that program? It was NOT open-source (not that anyone
really wants it).

Gordon L. Burditt
Nov 14 '05 #3
Chris Johnson wrote:

I'm making a prime-generating program, and due to the nature of
primes, this program will need to handle very large numbers. I've
googled around a bit and found I need a header called bignums.h,
but for the life of me I've been unable to find it. Does anybody
have a specific location from which I may download this header.


You are confused. headers are used to describe the available
contents of libraries, packages, compilation units, etc. to the
code using such. When you find the appropriate package the header
will be there.

--
"I support the Red Sox and any team that beats the Yankees"
"Any baby snookums can be a Yankee fan, it takes real moral
fiber to be a Red Sox fan"
"I listened to Toronto come back from 3:0 in '42, I plan to
watch Boston come back from 3:0 in 04"

Nov 14 '05 #4
Chris Johnson wrote:
I'm making a prime-generating program, and due to the nature of primes,
this program will need to handle very large numbers. I've googled around a
bit and found I need a header called bignums.h, but for the life of me
I've been unable to find it. Does anybody have a specific location from
which I may download this header.

More generally, is there a C header repository that I can access that
would prevent me from needing to bring this to usenet. Thanks.

Chris

The lcc-win32 C compiler uses a header that is called "bignums.h"
If you download lcc-win32 you will find all you need to work with
big numbers.

The documentation is useful too, download it together with the
whole package at:
http://www.cs.virginia.edu/~lcc-win32
Nov 14 '05 #5
On Wed, 20 Oct 2004 04:33:27 +0000, CBFalconer wrote:
You are confused. headers are used to describe the available
contents of libraries, packages, compilation units, etc. to the
code using such. When you find the appropriate package the header
will be there.


Thanks for clarifying. I'm new to C, after having dealt primarily with
perl (and a very little C++) so I'm used to includes referring to actual
modules.

Nov 14 '05 #6
On Tue, 19 Oct 2004 21:15:49 -0400, Raymond Martineau wrote:
With C, I doubt you can do much with "bignums.h" alone - you need a library
to go with it.

Try a google search for "Arbitrary Precision library" - the first links you
find point to the "GNU MP Precision Library" and the "Fracting Arbitrary
Precision Library".


Thanks. GMP is just what I needed.

Chris
Nov 14 '05 #7
CBFalconer <cb********@yahoo.com> spoke thus:
You are confused.


I thought that was Trollsdale's line? ;)

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #8
Christopher Benson-Manica wrote:
CBFalconer <cb********@yahoo.com> spoke thus:
You are confused.


I thought that was Trollsdale's line? ;)


Ugh, spit, spit. Brush furiously. Spit. Retch.

--
"I support the Red Sox and any team that beats the Yankees"
"Any baby snookums can be a Yankee fan, it takes real moral
fiber to be a Red Sox fan"
"I listened to Toronto come back from 3:0 in '42, I plan to
watch Boston come back from 3:0 in 04"
Nov 14 '05 #9
On Thu, 21 Oct 2004 05:38:48 GMT, in comp.lang.c , CBFalconer
<cb********@yahoo.com> wrote:
"I listened to Toronto come back from 3:0 in '42, I plan to
watch Boston come back from 3:0 in 04"


You're a lucky boy. :-)
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>
Nov 14 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

467
by: mike420 | last post by:
THE GOOD: 1. pickle 2. simplicity and uniformity 3. big library (bigger would be even better) THE BAD:
18
by: Zero | last post by:
Hi, I am calculating an integer to the pwer of a large integer, e.g. 2^5000. It turns out that the result I always get is zero. I am sure that the result is too large to store in such type...
193
by: Michael B. | last post by:
I was just thinking about this, specifically wondering if there's any features that the C specification currently lacks, and which may be included in some future standardization. Of course, I...
32
by: someone else | last post by:
hi all I'm a newbie to this group. my apologies if I break any rules. I've wrote a simple program to find the first 1,000,000 primes, and to find all primes within any range (up to 200 *...
19
by: shanx__=|;- | last post by:
hi i need some help regarding use of very very long integer datatype in 'c'.. i need it to store result of large number's factorial.. if someone can healp it would be a delight..
14
by: BGreene | last post by:
I was not going to post this but my someone thought it was funny, Write the shortest c statement that will "exchange" two unsigned ints. in place.
335
by: extrudedaluminiu | last post by:
Hi, Is there any group in the manner of the C++ Boost group that works on the evolution of the C language? Or is there any group that performs an equivalent function? Thanks, -vs
74
by: lovecreatesbeauty | last post by:
My small function works, but I have some questions. And I want to listen to you on How it is implemented? 1. The function does not check if parameter x is larger or smaller than parameter y. ...
56
by: write2gops | last post by:
Hi, Is there a way to change the sizeof int type? Is it posible to make it return 3 or 5 by changing some header file in the compiler? Thanks in advance.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.