/ "Ronald E Mathews Jr." <[EMAIL PROTECTED]> wrote:
| I am not in the GIMPS Program, but I am continually getting the e-mails because
| I love numbers, especially prime numbers.  I recently made a generic program
| that determines whether a Mersenne number is prime or not in C.  but there is
| not enough precision in the long double data type (53 bits).  If I can find a
| way to increase the precision, I can speed up the program's calculations.  Any
| suggestions would be much appreciated.

You should use some kind of math library for C. If you program on a
unix platform, you can take a look at the LGPL'ed gmp2 library (GNU
Multiple Precition library). You could also consider buying a
commercial library, e.g. NAG C library which is available for Windows
at least.

-- 
Eirik Mikkelsen - [EMAIL PROTECTED]

Reply via email to