Live data from Hacker News

The First 50M Prime Numbers (1975) [pdf]

people.mpim-bonn.mpg.de

41–42 of 42 posts

Re: The First 50M Prime Numbers (1975) [pdf]

#41
post #11

The 50 000 000th prime is 982451653, but fun fact: you may have already memorized a prime much larger than this without even realizing you have done so! 2^255-19 This is where Curve 25519 and the associated cryptography (ed25519, x25519) gets its name from. Written out, 2^255-19=57896044618658097711785492504343953926634992332820282019728792003956564819949.

On a Linux command line:

    echo '2^255-19' | bc

Re: The First 50M Prime Numbers (1975) [pdf]

#42
post #19
post #15

Earlier quoted context omitted.

Cool, I hadn't run into it before so thanks for introducing me! I was going to include the digits for comparison, but yes, on second thought 6002 digits is probably too much for polite inclusion in a HN post.

Yeah, although that's better than 19937 ones in a row.

https://oeis.org/A004023 "Indices of prime repunits: numbers k such that 11...111 (with k 1's) = (10^k - 1)/9 is prime."

OEIS says "19937 ones in a row" isn't prime, but "1031 ones in a row" is.

And "8177207 ones in a row" is at least a probable prime. (Which you can maybe remember as a seven-digit phone number, or as either BITTZOT or LOZLLIB depending on how you prefer to hold your calculator. But those mnemonics are wasted if (10^{81777207}-1)/9 turns out to be merely pseudoprime.)

Post reply on HN