انضم إلى نوستر
2026-07-21 15:25:32 UTC
in reply to

YODL on Nostr: Few things I don't understand: >>>Basically you find all the numbers less than the ...

Few things I don't understand:

>>>Basically you find all the numbers less than the the first n primes multiplied together, p_n#, and coprime to it. Then isolate the twins, then find their central numbers. E.G. 12 for (11,13) and 18 for (17,19) then you find the gap between them. 6 in the example above. For 2*3*5=30 the centers are 0,12,18,30. So the largest gap is 12
Are we counting (29,31) as twin primes here?

>>>The wheels are symmetric so you really only need to search the first half taking care to double the middle gap. So in our example above I count to 15, noting the gap of 12 then count 3 more to get to 15, double that to get 6. 12 is bigger than 6 so keep that. No need to do 30-18, that's just 12 again.
Not following this; "count to 15, noting gap of 12..". Where is this gap of 12 in the list up to 15? I think you meant "center?" Or maybe it's a center of 12 which is a gap of 12 from 0... unclear on how you're handling the edge cases, but I think you're including them, and then here stating that the biggest gap you find below halfway point only then requires checking how far to midpoint for one other case...would be nice if I understood better.

>>>Why? Well any element of the set < p_n^2 is prime if the maximum gap is < p_n^2 then no matter how well orchestrated the primes are in eliminating twin elements then there will always be some twin elements that are prime.
Not sure I follow this, but I'm kinda being lazy at this point. Claude did mention something about this, so I think I could sort if out if I put my mind to it.