Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.programming Subject: Re: Where can I find maximum primes < 2^n Date: Wed, 15 May 2019 23:23:48 +0100 Organization: A noiseless patient Spider Lines: 17 Message-ID: <87y337jr0r.fsf@bsb.me.uk> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="be9174a41cdf015a3a613c8b1a9b0fa8"; logging-data="20042"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TQQpXyFrzuDXcxu9X6w7HSebaif+omI4=" Cancel-Lock: sha1:Rh9CtqLhalz8nEpxizUu30E1ATw= sha1:njGwK0RpwAxyC83A635QoIjFdn4= X-BSB-Auth: 1.81906d7e813a1648f10e.20190515232348BST.87y337jr0r.fsf@bsb.me.uk Xref: csiph.com comp.programming:9918 Bonita Montero writes: > I need the largest prime that fits in a unsigned 64 bit integeger > to build hash-keys. Can anyone tell me a source for such primes > in the net? That's been answered, but there are also many programs that can tell you. For example, it's common for computer maths programs to have next and previous prime functions. For example, GP/PARI reports ? precprime(2^64 - 1) %1 = 18446744073709551557 as does Maxima. -- Ben.