C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Huge numbers in cpp

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
t
Guest





PostPosted: Thu Apr 28, 2005 12:55 pm    Post subject: Huge numbers in cpp Reply with quote



Hello,
I am going to write a program to search for prime numbers. There will be a
lot of clients participating in this searching so I have to operate on very
huge numbers, bigger than can be stored in double...

I wonder how can I deal with this numbers? Do I have to create an array of
doubles or ints? How could I make calculations on numbers stored in such an
array?

Could you give me some ideas? Or maybe you could send me source of any
program which operates on enormous numbers stored in arrays?

Thanks in advance,
Tomek


Back to top
Karl Heinz Buchegger
Guest





PostPosted: Thu Apr 28, 2005 1:02 pm    Post subject: Re: Huge numbers in cpp Reply with quote



t wrote:
Quote:

Hello,
I am going to write a program to search for prime numbers. There will be a
lot of clients participating in this searching so I have to operate on very
huge numbers, bigger than can be stored in double...

I wonder how can I deal with this numbers? Do I have to create an array of
doubles or ints? How could I make calculations on numbers stored in such an
array?

Could you give me some ideas? Or maybe you could send me source of any
program which operates on enormous numbers stored in arrays?

Why reinvent the weel.
Google is your friend. Search for 'Big number library C++ download'
and choose one.



--
Karl Heinz Buchegger
[email]kbuchegg (AT) gascad (DOT) at[/email]

Back to top
Alf P. Steinbach
Guest





PostPosted: Thu Apr 28, 2005 1:02 pm    Post subject: Re: Huge numbers in cpp Reply with quote



* t:
Quote:

Could you give me some ideas? Or maybe you could send me source of any
program which operates on enormous numbers stored in arrays?

<url: http://www.swox.com/gmp/>

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

Back to top
Alex Vinokur
Guest





PostPosted: Thu Apr 28, 2005 3:13 pm    Post subject: Re: Huge numbers in cpp Reply with quote


"t" <tkaczmarczyk (AT) poczta (DOT) onet.pl> wrote

Quote:
Hello,
I am going to write a program to search for prime numbers. There will be a
lot of clients participating in this searching so I have to operate on very
huge numbers, bigger than can be stored in double...

I wonder how can I deal with this numbers? Do I have to create an array of
doubles or ints? How could I make calculations on numbers stored in such an
array?

Could you give me some ideas? Or maybe you could send me source of any
program which operates on enormous numbers stored in arrays?

Thanks in advance,
Tomek



Try to use C++ BigInt class
[url]https://sourceforge.net/projec­ts/cpp-bigint/[/url]
[url]http://groups-beta.google.com/­group/sources/msg/496e8d3ae812­abbb[/url]


--
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn






Back to top
Krzysztof Zelechowski
Guest





PostPosted: Wed May 04, 2005 9:22 pm    Post subject: Re: Huge numbers in cpp Reply with quote


Uzytkownik "Karl Heinz Buchegger" <kbuchegg (AT) gascad (DOT) at> napisal w wiadomosci
news:4270DECE.5D48D20A (AT) gascad (DOT) at...
Quote:
t wrote:

Hello,
I am going to write a program to search for prime numbers. There will be
a
lot of clients participating in this searching so I have to operate on
very
huge numbers, bigger than can be stored in double...

I wonder how can I deal with this numbers? Do I have to create an array
of
doubles or ints? How could I make calculations on numbers stored in such
an
array?

Could you give me some ideas? Or maybe you could send me source of any
program which operates on enormous numbers stored in arrays?

Why reinvent the weel.
Google is your friend. Search for 'Big number library C++ download'
and choose one.


Search for "Search for prime numbers" and choose GIMPS.
Chris



Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.