home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!math.fu-berlin.de!ira.uka.de!scsing.switch.ch!sicsun!iamace9.epfl.ch!guglielmetti
- From: guglielmetti@elia.epfl.ch (Philippe Guglielmetti)
- Newsgroups: comp.programming
- Subject: Re: how about PRIME numbers ?
- Message-ID: <4671@sicsun.epfl.ch>
- Date: 26 Jan 93 17:09:18 GMT
- References: <peterd.727578786@tscc2> <1jvfnq$rvn@agate.berkeley.edu>
- Sender: news@sicsun.epfl.ch
- Organization: IA-DME-EPFL
- Lines: 16
- X-UserAgent: Nuntius v1.1.1d11
- X-XXMessage-ID: <A78B307C03017B20@iamace9.epfl.ch>
- X-XXDate: Tue, 26 Jan 93 18:16:28 GMT
-
- Hi!
- about primes, I've read somewhere that it is possible to check if a
- really large "candidate" number like 2^245-1 is prime or not in a
- reasonable time using "congruence", without generating all the primes and
- without looking for divisors (which is roughly equivalent) but I didn't
- really understood how it worked in practice. Does anyone have code for
- this ?
-
- I remember that this what makes modern "revealed key encryption" feasible
- since the public key is the the product of 2 large prime numbers (which
- form the private key used in decryption). If I understood correctly, it
- was formally prooved that no polynomial time algorithm exists to
- decompose a number in its prim e factor...
-
-
- Ph. Guglielmetti
-