home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math
- Path: sparky!uunet!think.com!linus!linus.mitre.org!gauss!bs
- From: bs@gauss.mitre.org (Robert D. Silverman)
- Subject: Re: Prime test algorithm
- Message-ID: <1992Nov19.170217.9466@linus.mitre.org>
- Sender: news@linus.mitre.org (News Service)
- Nntp-Posting-Host: gauss.mitre.org
- Organization: Research Computer Facility, MITRE Corporation, Bedford, MA
- References: <1992Nov14.154528.17440@husc15.harvard.edu> <BxuIp4.3ss@iat.holonet.net>
- Date: Thu, 19 Nov 1992 17:02:17 GMT
- Lines: 42
-
- In article <BxuIp4.3ss@iat.holonet.net> rkinder@iat.holonet.net (Robert J. Kinder) writes:
- :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.
- :
-
- Actually, no. Arjen's package (unless he has improved it) works in 15
- bit arithmetic as the RADIX. There are faster packages. PARI, Dik Winter's
- package, mine, Peter Montgomery's are all faster than the version I have
- of Arjen's code. (But they are less portable, having assembler code)
-
- This is NOT to denigrate Arjen's code. It was written with portability, not
- speed, in mind.
-
-
- :BigNum directory. The file should be about 91KB in size. This package
- :has -, +, *, /, mod, primality testing, and exponentiation plus other
- ^^^^^^^^^^^^^^^^^^
-
- You mean "probable prime testing". The code doesn't actually do primality
- PROOFS.
-
- If you really want proofs, it is best to write to Francois Morain, or
- Wieb Bosma and ask them for their code.
-
- I will send my MPP code to anyone who writes *personally* and asks for it.
- --
- Bob Silverman
- These are my opinions and not MITRE's.
- Mitre Corporation, Bedford, MA 01730
- "You can lead a horse's ass to knowledge, but you can't make him think"
-