9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: don bailey <don.bailey@gmail.com>
To: 9fans@cse.psu.edu
Subject: [9fans] probably problematic primes
Date: Wed,  9 May 2007 17:16:50 -0600	[thread overview]
Message-ID: <46425662.4050403@gmail.com> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is the implementation of Fermat's probably prime algorithm in
probably_prime.c:probably_prime( correct? I thought the algorithm is:

	isPrime = (2^(n-1) mod n == 1)

not
	isPrime = (2^(n-1) mod n == 2)

Don
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGQlZiyWX0NBMJYAcRAroLAJ0cu1prgXdaym7M5ytpK7LQEV//uQCfYw6w
N+H8XC+ZXUnHqn35Ha0B5Qs=
=Ir4C
-----END PGP SIGNATURE-----


             reply	other threads:[~2007-05-09 23:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-09 23:16 don bailey [this message]
2007-05-09 23:22 don bailey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46425662.4050403@gmail.com \
    --to=don.bailey@gmail.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).