Aren't There Any Formulas for Prime Numbers?

Click For Summary

Discussion Overview

The discussion centers on the existence of formulas that can generate prime numbers for any given whole number ##n## without producing non-prime results. Participants explore various known formulas that have failed to produce all primes and question whether any such formula exists.

Discussion Character

  • Debate/contested
  • Exploratory
  • Mathematical reasoning

Main Points Raised

  • Some participants note that known formulas such as ##f(n) = n^2 - n - 41##, ##g(n) = 2^{(2^n)} + 1##, and ##m(n) = 2^n - 1## have failed to produce all prime numbers for specific values of ##n##.
  • One participant questions the necessity of irrationality in a recursive method related to prime generation and suggests that the method may merely encode known primes rather than generate new ones.
  • A new constant, ##P_{buk} = 0.203005000700011...##, is introduced by a participant, along with a suggestion that the derivation of a related prime-generating formula is left to the reader.
  • Another participant asserts that no useful formula for primes is known that could find new primes more efficiently than trial and error.
  • Discussion includes the idea that the intervals between successive prime numbers increase with larger divisors and mentions the phenomenon of twin primes.
  • One participant reflects on their attempts to compare intervals among prime numbers with other sequences, noting inconclusive results.

Areas of Agreement / Disagreement

Participants express differing views on the existence of a formula that can generate all prime numbers. While some assert that no such formula is known, others explore various methods and constants, indicating a lack of consensus on the topic.

Contextual Notes

Participants acknowledge the limitations of current knowledge regarding prime generation and the complexity of the problem, with some suggesting that future discoveries could change the understanding of this topic.

bagasme
Messages
79
Reaction score
9
Hello all,

We know that following formulas failed to produced all prime numbers for any given whole number ##n##:

  1. ##f(n) = n^2 - n - 41##, failed for ##n = 41~(f = 1681)##
  2. ##g(n) = 2^(2^n) + 1##, failed for ##n = 5~(g = 4,294,967,297)##
  3. ##m(n) = 2^n - 1##, failed for ##n = 67~(m = 147,573,952,588,676,412,927)##
The question is: Are there any formulas that produce prime numbers for any given ##n## (without non-prime results), or aren't they?

Bagas
 
Mathematics news on Phys.org
bagasme said:
Hello all,

We know that following formulas failed to produced all prime numbers for any given whole number ##n##:

  1. ##f(n) = n^2 - n - 41##, failed for ##n = 41~(f = 1681)##
  2. ##g(n) = 2^(2^n) + 1##, failed for ##n = 5~(g = 4,294,967,297)##
  3. ##m(n) = 2^n - 1##, failed for ##n = 67~(m = 147,573,952,588,676,412,927)##
The question is: Are there any formulas that produce prime numbers for any given ##n## (without non-prime results), or aren't they?

Bagas

https://en.wikipedia.org/wiki/Formula_for_primes
 
  • Like
Likes   Reactions: Klystron, kith and fresh_42
bagasme said:
I see the floor function recursivemethod interested.
I'm not sure what this means.
bagasme said:
In that case, why ##f_1## need to be irrational?
Look at the denominators of the terms of the series expansion. What do you see?

Also, look again at the derivation of ##f_1##. Do you think this is really an interesting method of generating primes, or just a method of encoding primes that are already known?

I provide a new constant ##P_{buk} = 0.203005000700011...##. Derivation of the related prime generating formula is left to the reader.
 
  • Love
Likes   Reactions: jbriggs444
There is no useful formula for primes known, i.e. a formula that could be used to find new prime numbers more efficiently than clever trial and error.
 
Last edited:
  • Like
Likes   Reactions: Janosh89
Did you mean to include the word "known" in that sentence?
 
It's always the current status of knowledge, a future proof of a nonexistence of such a formula would be really remarkable, but I added it explicitly for clarity.
 
Ignoring computational complexity for the sake of discussion, use of various 'sieves' seems to tell us that the interval between successive prime numbers should increase as we employ successively larger divisors. Then we encounter twin primes where the next higher odd number is also prime. Primes have fascinated me since I learned multiplication.

As pbuk and other posters have described, we do not so much generate prime numbers as discover them; like a miner finding a gold nugget in the next pan of gravel. As a student I attempted to compare intervals among prime numbers to square numbers, triangle, Catalan, and other sequences with instructive but inconclusive results.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 3 ·
Replies
3
Views
919
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 35 ·
2
Replies
35
Views
5K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K