home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.hackers
- Path: sparky!uunet!think.com!spdcc!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!bsy
- From: bsy+@cs.cmu.edu (Bennet Yee)
- Subject: Re: Prime Number Generator
- Message-ID: <Btv3L1.4oC.2@cs.cmu.edu>
- Sender: news@cs.cmu.edu (Usenet News System)
- Nntp-Posting-Host: play.trust.cs.cmu.edu
- Organization: Cranberry Melon, School of Cucumber Science
- References: <grtyj5-@rpi.edu> <1992Aug31.160225.26724@gateway.novell.com>
- Date: Mon, 31 Aug 1992 19:02:59 GMT
- Approved: bsy@play
- Lines: 61
-
- In article <1992Aug31.160225.26724@gateway.novell.com> alex@otis (The Console DJ) writes:
- >In article <grtyj5-@rpi.edu> cleggp@aix.rpi.edu (Paul Jason Clegg) writes:
- >>I'm interested in generating large prime numbers for use in some public key
- >>code encryption schemes, and I'm looking for the fastest way to generate all
- >>the primes from 2 up to as high as I can go on my 386/25 (Using BC++ 3.1, I
- >
- >Someone correct me if I am wrong but the whole idea behind the encryption is
- >the large prime numbers are difficult to calulate??? Actually there should
- >be no known algorithm (except brute force try every number thingy).
-
- There are polynomial time algorithms for testing primality assuming
- Generalized Reimann Hypothesis (GRH). W/o assuming GRH, there are
- probabilistic polynomial time algorithms (one-sided error, i.e., in R)
- for testing primality. It is easy to test the primality of numbers
- that have hundreds or even thousands of decimal digits. This, of
- course, is feasible on 386's.
-
- Note that the seive is exponential time, since you are creating a
- table that is exponential in size on the _size_ of the number that you
- want to test (size measured in number of bits required to represent
- it).
-
- *Factoring* is what's hard. Or so number theorists believe.
-
- These sort of questions are more appropriately posted to sci.crypt.
-
- No ObHack.
-
- -bsy
-
-
- @article(MillerPrime,
- Key="Miller",
- Author="G. L. Miller",
- Title="Riemann's Hypothesis and a Test for Primality",
- Year=1976,
- Volume=13,
- Journal="Journal of Computing and Systems Science",
- Pages="300--317")
-
- @article(SolovayStrassen,
- Key="Solovay and Strassen",
- Author="R. Solovay and V. Strassen",
- Title="A Fast {Monte-Carlo} Test for Primality",
- Month="March",
- Year=1977,
- Volume=6,
- Journal="SIAM Journal on Computing",
- Pages="84--85")
-
- @article(RabinPrime,
- Key="Rabin",
- Author="Michael O. Rabin",
- Title="Probabilistic Algorithm for Testing Primality",
- Year=1980,
- Volume=12,
- Journal="Journal of Number Theory",
- Pages="128--138")
- --
- Bennet S. Yee Phone: +1 412 268-7571 Email: bsy+@cs.cmu.edu
- School of Computer Science, Carnegie Mellon, Pittsburgh, PA 15213-3890
-