Simple Issues

Richard Cavell richardcavell at mail.com
Fri Mar 25 11:30:52 CET 2005


> I plan to check large numbers with several rithims whether they are primes or
> not.
> 
> Can I just define a huge int and use it in for() or if?

Yes.  Declare a mpz_t and use it.  You can't do direct operations on it using <gmp.h> (eg you can't do MyBigInt ++; )

> Can I build a library of my functions load them into delphi sending strings
> with high numbers to the funktions which understand them as they were ints?

You can convert a string into a big-int type with mpz_set_str().

> (If yes; How? I`m really missing an easy tutorial on it)

Go to www.swox.com/gmp/manual/


-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



More information about the gmp-discuss mailing list