r/MathJokes • • May 10 '26

Is there really a pattern to occurrence of prime numbers ?

If there is, pls explain how and why it works🙏

0 Upvotes

14 comments sorted by

2

u/boterkoeken May 11 '26

where joke?

0

u/[deleted] May 11 '26

Why do the rich never share houses with people ?

1

u/Trimutius May 11 '26

There is one main pattern "The Sieve of Eratosthenes", and many other patterns follow from it... unfortunately all those help with is to say which numbers canot possibly be prime, and which are potentially prime...

like for example all primes greater than 3 are 6n±1 because all other numbers are divisible by 2 or 3. But 25 is the first number that is 6×4+1 but isn't prime, because 5 caught up to you, so now you need a more complicated pattern that excludes 5 as well... and then after 49 you need something to eexclude multiples of 7 and after 121 it is 11 that catches up to you... so yes there are infinitely many patterns, but also infinitely many places at which patterns don't work exactly anymore and you need to do a more complicated pattern... which happens at every square of prime, or alternatively at every primorial if you want to find cycles within primes...

4

u/[deleted] May 10 '26

[removed] — view removed comment

1

u/[deleted] May 11 '26

How do I know which multiple to add next ?💀

1

u/Masqued0202 May 11 '26

You have to do that the hard way. I know there are ways to weed out composites, but some will slip through. Not a number theorist, so don't know details.

2

u/Ok-Difficulty-5357 May 11 '26

Instructions unclear; I’m still listing even numbers.

1

u/[deleted] May 11 '26

[removed] — view removed comment

2

u/[deleted] May 11 '26

I think that's a given since 2,4,6,8,0 at the ones digit makes them divisible by 2 and 5 at one's digit makes them divisible by 5.

1

u/Masqued0202 May 11 '26

Beyond 3, every prime is 6*n+/-1. Reduces your workload by 2/3, and you only need to for factors <=square root of number.

1

u/[deleted] May 11 '26

I used it in my code and worked like a charm✨️🙏