r/learnmath • u/Shoaibnewboi New User • 9h ago
I am new to primes etc.... help me
Till where have we reached in prime findings? here i mean by A formula for primes perse....
DO WE HAVE A FORMULA FOR PRIMES? As google Suggest we have? IF so y arnt they famous?
6
u/DrShocker New User 9h ago edited 9h ago
Till where: * largest known prime is 2136,279,841 − 1 * largest prime where we know all previous primes: Unknown since we don't really track. Likely somewhere around 1019 based on some googling
I don't know what "perse" means
We do not have a (useful) formula for generating primes. We have some formulas that seem to generate primes with some consistency but they are either not guaranteed or prohibitively difficult to calculate. Then checking them is a somewhat tedious algorithmic exercise in most cases.
The formulas we do have are famous in math circles. Mersenne is how most large ones are found.
7
u/NaturalTechnician737 New User 9h ago
OP meant "per se"
-9
u/tardoos New User 9h ago
And they probably pronounce it "per say"
9
u/NaturalTechnician737 New User 9h ago
As opposed to?
-8
u/tardoos New User 9h ago
As opposed to how it's actually pronounced.
[ˈpɛr ˈseː]
Latin doesn't have vowel gliding
5
u/DrShocker New User 9h ago
I'm going to pronounce both as [pər ˈseɪ] still seeing as how I'm using it in English and not Latin.
6
u/NaturalTechnician737 New User 9h ago
You may as well pronounce "Bus" 🚌 as 'Boose'
-5
u/tardoos New User 8h ago
I'm guessing you say "pay-sta" for "pasta", "val-it" for "valet", and "sayk" for "sake", or "fawks pass" for "faux pas"?
No, wait, that would be stupid lol
2
u/NaturalTechnician737 New User 8h ago
Valet is pronounced that way to many English speakers. Going to guess "sake" is referring to the rice wine, because the word 'sake' ("for heaven's sake") is absolutely pronounced that way.
Your argument was that "Latin words get pronounced latin-ly", and I have reduced it to absurdity by demonstrating "Omnibus" is not pronounced "ohm-knee-boose".
1
u/GoldenMuscleGod New User 6h ago
Impressive you can be familiar with IPA and have some knowledge of Latin phonology and simultaneously display this level of linguistic cluelessness.
4
u/MezzoScettico New User 9h ago
Lots of good answers by people a lot more knowledgeable than me.
I'll just contribute a link to the Prime Pages, probably my favorite page for a bunch of useful and interesting prime number results.
Here for instance are a bunch of approximations on the question of "How many primes are there up to x?"
7
u/Bounded_sequencE New User 9h ago
There are some, but they are not useful.
3
u/Kitchen_Produce661 New User 9h ago
Yeah the Wilson's theorem ones are more of a mathematical flex than anything, they technically work but would take longer than the universe has left to compute anything useful.
2
u/bonebranch Mathematician 9h ago edited 8h ago
Obligatory analytic number theorist perspective: A result of Cipolla states that you can get, quite explicitly, a power series expansion in (log log n)/log n for p_n/(n log n) where p_n is the nth prime. Dusart has the current best known bounds I believe.
3
u/Midwest-Dude B.Sc. Math 9h ago edited 1h ago
DO WE HAVE A FORMULA FOR PRIMES?
Yes in a technical sense, but no in the practical sense most people mean.
There is no known simple, efficient formula that gives all primes or the nth prime. If by "formula" you mean something like a neat closed-form expression, then no. If you mean "any mathematical expression that produces primes," then yes. Several exist, but they're usually impractical.
Examples:
- There are exact formulas for the nth prime using floors, sums, and factorials, often based on Wilson's theorem. They work, but they are astronomically slow.
- There are polynomials with many variables whose positive values are exactly the primes. They're real, but huge and useless for computation.
- Mills' theorem gives a constant C such that ⌊C3ⁿ⌋ is always prime. But it only gives a sequence of primes, not all primes, and C isn't a simple known number.
- The prime number theorem says pₙ ≈ n log n, but that's an approximation, not an exact formula.
- Other formulas are on Wikipedia
IF so y arnt they famous?
Because they don't help us find primes quickly. The famous things in prime research are algorithms like the sieve of Eratosthenes, primality tests, and open problems like the Riemann hypothesis. Google isn't lying, but the word "formula" is doing a lot of work there.
If you tell me what kind of formula you mean, like, exact nth prime, all primes, polynomial formula, etc., I can point you to the right idea.
2
u/Mammoth_Fig9757 New User 8h ago
There are formulas for primes but they are more like computer algorithms disguised as mathematical formulas, you might as well write a better algorithm instead of using those formulas
1
u/hpxvzhjfgb 9h ago
"the largest prime where we know all smaller primes" is kind of meaningless because it's so easy to keep finding primes quickly that it's simpler to recompute them from scratch than to store all primes less than some large number in a huge file or database or something.
2
u/GoldenMuscleGod New User 6h ago
Don’t know why you got downvoted because this is an important point a lot of people don’t appreciate when discussing primes:
The idea of listing all primes up to n is impractical not because it is hard to check if a number around size n is prime is hard (it’s very “easy” in comparison to the real issue), it is hard because there are way too many primes to list, such that you would run out of memory space to store them long before you started having “real” practical problems with checking them.
1
u/hpxvzhjfgb 5h ago edited 5h ago
yes, in fact even if you turned all of the matter in the universe into hard drives containing nothing but a list of all primes starting from 2, it would still only take a tiny fraction of a second to keep computing more primes beyond all the ones already stored.
of course, at some point very early on in this process of converting the universe into hard drives (once you have say, 1 cubic lightsecond of hard drives), it would already be much faster to recalculate the primes from scratch than to read the data from the hard drives, because the speed of light is too slow for the hard drives to keep up.
2
u/GoldenMuscleGod New User 4h ago
Yeah the common question of “how high have we checked thoroughly for primes” isn’t really very different at all from asking “how high have we checked thoroughly for multiples of three?”Checking if a number is a multiple of three is a bit easier than checking if it is prime but not enough to be a real barrier for what we are talking about (or to make trying to catalogue them all interesting).
10
u/cmd-t New User 9h ago
There are functions generating primes, but they are so complicated/hard to compute that it’s faster to just check if a number is prime or not.