Large Twin Primes: Find & Submit 100 Digit Primes

  • Context: Undergrad 
  • Thread starter Thread starter Zurtex
  • Start date Start date
  • Tags Tags
    Primes
Click For Summary

Discussion Overview

The discussion revolves around the generation and submission of 100-digit twin primes, exploring the rarity of such primes and their implications for RSA encryption. Participants share their experiences, algorithms, and questions regarding the status of known twin primes, particularly in the context of larger digit lengths.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant has developed an algorithm that generates 100-digit primes quickly and has found a 100-digit twin prime, questioning the possibility of submitting it.
  • Another participant points out the grammatical error in referring to "a twin prime" and notes that 100-digit primes are relatively small compared to known larger twin primes.
  • A participant acknowledges the difficulty of finding twin primes in the 100-digit range and expresses curiosity about existing lists of twin primes.
  • There is mention of a conjecture by Hardy and Littlewood regarding the density of twin primes, suggesting that they are not too rare at the 100-digit level.
  • One participant discusses the implications of twin primes for RSA encryption, suggesting that primes that are close together may not be ideal for security.
  • A participant seeks clarification on the definition of twin primes, prompting a response that defines twin primes as pairs of primes that differ by 2.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and interest in the topic, with some agreeing on the rarity of 100-digit twin primes while others question the significance of finding them. There is no consensus on the existence of a comprehensive list of such primes or their implications for RSA.

Contextual Notes

Some participants reference conjectures and previous knowledge that may not be fully substantiated, and there are unresolved questions about the completeness of known twin prime lists and the implications for RSA security.

Zurtex
Science Advisor
Homework Helper
Messages
1,118
Reaction score
1
Hi hi, I've been messing about with primes for the last couple of weeks now to try and generate very strong primes for my RSA project. I've made an algorithm which generates a 100 digit prime within about 3 seconds. For my own amusement I thought I'd add a little check to see if any prime I found was also a twin prime. Well I've now successfully found a 100 digit twin prime, I'm wondering is there anywhere I can submit this and would it be worth it? Surely not all 100 digit twin primes have been found.
 
Mathematics news on Phys.org
How can one have *a* twin prime?

Anyway, don't know how complete lists of twin primes are, but Wolfram has a link to a table of known twin primes of more than 2000 digits, so 100 doesn't seem very big in this context. The links through wolfram's twin prime page might be worth you investigating if you want to check.
 
:rolleyes: Give me a break, I had just got up and was tired, sorry for the grammatical mistake.

I realize that in context to 'the largest twin primes ever found' that as a freshman playing around in MATLAB for 20 minutes on an old computer I'm not going to be able to come close to them. However I thought there may like be some list of all twin primes found so far and the chances of finding twin primes in 100 digit region mustn’t be particularly high.
 
There may well be only few twin prime pairs with 100 digits known - I didn't exhaustively follow all the links - I figured, if you were interested, you'd do that. There was a list of thet first 100,000 twin pairs (and I don't think they got anywhere near 100 digits) on one site.. and some gzip'ed files with lots of numbers in them. Sadly I didn't see a twin prime checking machine. (Aren't twin primes bad for RSA? A naive division algorithm might start at the square root of the number to be factored and hit the answer in two steps or so - I just remember a question like that appearing on a computer project once - explain why primes close together are not as good as primes far apart in RSA. Of course this was something I read once 4 years ago and I could be misremembering).
 
They won't be too rare at that height. Hardy and Littlewood conjectured that the number of twin primes less than x to be about 1.32*x/log(x)^2. (The 1.32... is approximate, the constant is really a certain product over primes). You're basically a log(x) factor off from the number of primes. At 10^100 this is only 230.2..., so every 1.32...*230.2... primes or so you find, you'd expect p+2 to be prime once. Your old computer should be able to spit one out every 15~20 minutes or so, I guess half that time if you check p-2 as well. For fun you could run your program over a week finding primes and twin primes and see how close your actual data reflects the conjectured density.

I'm sure there's no list of twin primes in the 10^100 range, but generating them is not too difficult, so any particular one isn't that interesting. Same reason any given 100 digit prime isn't too exciting.
 
Thanks :smile:

I realize twin primes aren't good for RSA and as a standard where p and q are my primes and p<q then I generally makes sure that q is not within the interval p to 2p. As well as various other rules I’ve come up with that should make it difficult to find p and q given pq from the level of thinking of most people in my class.
 
Mmm... :rolleyes: can i pop-up and ask absic Q here:

What is "twin prime"? :biggrin:
 
Two primes are twins if they differ by 2.

Some examples of twin primes are:

3, 5
5, 7
11, 13
17, 19
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
Replies
7
Views
4K
Replies
14
Views
3K
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 10 ·
Replies
10
Views
7K
  • · Replies 9 ·
Replies
9
Views
4K
Replies
9
Views
7K