home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math
- Path: sparky!uunet!europa.asd.contel.com!emory!sol.ctr.columbia.edu!spool.mu.edu!agate!iat.holonet.net!rkinder
- From: rkinder@iat.holonet.net (Robert J. Kinder)
- Subject: Re: Prime test algorithm
- Message-ID: <BxuIp4.3ss@iat.holonet.net>
- Organization: HoloNet (BBS: 510-704-1058)
- References: <1992Nov14.154528.17440@husc15.harvard.edu>
- Date: Tue, 17 Nov 1992 05:46:15 GMT
- Lines: 24
-
- blom@husc15.harvard.edu writes:
- : Does anyone have C source code for an algorithm to determine whether an
- : enormous number (over 1000 decimal digits) is prime or composite? I have
- : Derive and Mathematica for my 486, but they run slowly on some of my large
- : prime-test problems (546!-1) and I would like to be able to use my VAXstation
- : 4000-90. I think I may also be able to compile Fortran, and maybe Pascal. I
- : have the best luck with C programs because they are so portable.
- :
- : Thanks in advance.
- : --Eric Blom
- : Harvard
-
- The best package seems to be Arjen Lenstra's arbitrary precision
- arithmethic package written in C, based on what I've read.
-
- Try anonymous FTP from cl-next2.cl.msu.edu and look for lenstra_3.c in the
- BigNum directory. The file should be about 91KB in size. This package
- has -, +, *, /, mod, primality testing, and exponentiation plus other
- functions.
- --
- // rkinder@holonet.net International Software Solutions, Inc. -
- // Robert J. Kinder, Jr. Boca Raton, Florida -
- // 1-800-788-4774 -
- // "We're having a real Ted Bundy day here." - C. Bernholtz
-