Article View: sci.crypt
Article #2985Re: Is N a prime power?
From: Robert D. Silverman
Date: Wed, 27 Jan 1993 00:57
Date: Wed, 27 Jan 1993 00:57
26 lines
1718 bytes
1718 bytes
In article <1k3qqpINNt0@gaia.ucs.orst.edu> pmontgom@math.orst.edu (Peter Montgomery) writes: :In article <1993Jan25.150556.24096@linus.mitre.org> bs@fatima.mitre.org stuff deleted.... : >:verify that a very large (hundreds of digits) number has at least two : >:distinct prime factors (i.e., that the number is not a prime power). : >:Tompa gives no hint how to do this and I haven't been able to find anyone : >:else who knows. I'd very much appreciate it if someone could explain : : >Direct search. An upper bound on the number of exponentiations is : >log_2(N). Each one takes O(log^3 N), so direct search takes only : >O(log^4 N) operations. : : I suggest testing whether GCD(N, b^(N-1) - 1) > 1, :where b is selected randomly and GCD(N, b) = 1. :If N = p^k, then p-1 divides p^k - 1 = N-1, :so p divides both N and b^(N-1) - 1. This takes time O(log^3 N). : Indeed. This is a variant of Cantor-Zassenhaus. [for polynomial roots mod p]. -- 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"
Technical Details
Message-ID:
<1993Jan27.005730.29749@linus.mitre.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!ames!agate!linus!linus.mitre.org!gauss!bsReferences:
<C1Exs1.8uz@ms.uky.edu> <1993Jan25.150556.24096@linus.mitre.org> <1k3qqpINNt0@gaia.ucs.orst.edu>Show Full Headers
Complete Article Headers
Newsgroups: sci.crypt Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!ames!agate!linus!linus.mitre.org!gauss!bs From: bs@gauss.mitre.org (Robert D. Silverman) Subject: Re: Is N a prime power? Message-ID: <1993Jan27.005730.29749@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: <C1Exs1.8uz@ms.uky.edu> <1993Jan25.150556.24096@linus.mitre.org> <1k3qqpINNt0@gaia.ucs.orst.edu> Date: Wed, 27 Jan 1993 00:57:30 GMT Lines: 26