From: William Lee Irwin III <wli@holomorphy.com>
To: Roland Dreier <roland@topspincom.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: hashed waitqueues
Date: Tue, 8 Jan 2002 10:44:26 -0800 [thread overview]
Message-ID: <20020108104426.U10326@holomorphy.com> (raw)
In-Reply-To: <20020104094049.A10326@holomorphy.com> <E16MeqE-0001Ea-00@starship.berlin> <20020104173923.B10391@holomorphy.com> <E16Mgoj-0001Ew-00@starship.berlin> <20020104210611.C10391@holomorphy.com> <20020108102037.J10391@holomorphy.com> <20020108102723.K10391@holomorphy.com> <523d1gu1ni.fsf@love-boat.topspincom.com>
In-Reply-To: <523d1gu1ni.fsf@love-boat.topspincom.com>; from roland@topspincom.com on Tue, Jan 08, 2002 at 10:40:33AM -0800
William> On Tue, Jan 08, 2002 at 10:20:37AM -0800, William Lee Irwin III wrote:
>> The (theoretically) best 64-bit prime with 5 high bits I found is:
William> [numbers]
>> and the (theoretically) best 64-bit prime with 4 high bits I found is:
William> [numbers]
William> Sorry, I forgot to credit my helpers in the last post:
William> The sieving technique to find these things was devised by
William> Christophe Rhodes <csr21@cam.ac.uk> and fare@tunes.org
On Tue, Jan 08, 2002 at 10:40:33AM -0800, Roland Dreier wrote:
> Just out of curiousity, why do you need a "sieving technique" to find
> these primes? There are only 63 choose 4 (which is 595665) 64 bit
> numbers with only 5 bits set, of which probably no more than 15000 are
> prime, so it seems you could just test all of them. What am I missing?
The sieving technique they devised uses that. In fact, they search only
2*choose(59,2), as bits 63, 0, and one of either 60 or 61 must be set,
since it must be odd to be prime and bits 63 -> 60 are determined by
(up to the choice of either 60 or 61) by 4/7 <= p/2^64 <= 2/3.
Cheers,
Bill
next prev parent reply other threads:[~2002-01-08 18:45 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-04 17:40 hashed waitqueues William Lee Irwin III
2002-01-04 21:47 ` Momchil Velikov
2002-01-04 23:07 ` Andrew Morton
2002-01-04 23:21 ` Andrew Morton
2002-01-04 23:48 ` William Lee Irwin III
2002-01-05 0:37 ` Daniel Phillips
2002-01-05 1:39 ` William Lee Irwin III
2002-01-05 2:44 ` Daniel Phillips
2002-01-05 5:06 ` William Lee Irwin III
2002-01-08 18:20 ` William Lee Irwin III
2002-01-08 18:27 ` William Lee Irwin III
[not found] ` <523d1gu1ni.fsf@love-boat.topspincom.com>
2002-01-08 18:44 ` William Lee Irwin III [this message]
2002-01-08 19:20 ` Hugh Dickins
2002-01-08 20:19 ` William Lee Irwin III
2002-01-16 14:21 ` Jamie Lokier
2002-01-16 17:42 ` William Lee Irwin III
2002-01-18 0:34 ` Jamie Lokier
2002-01-06 21:09 ` Rik van Riel
-- strict thread matches above, loose matches on Subject: below --
2002-01-04 21:17 Ed Tomlinson
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=20020108104426.U10326@holomorphy.com \
--to=wli@holomorphy.com \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@topspincom.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.