I am looking for a comment, reference, remark, or proof of three conjectures as follows:

Conjecture 1: Let $x$ be an odd positive integer. Then there exist two integers $n, m \ge 2$ so that $$x=P_{n+m}-P_n-P_m,$$ where $P_n$ is the $n^{th}$ prime.

My calculations the conjecture 1 true for $x=1, 3,\dotsc, 10^7-1$ and $x = 5.4371349x10^7$, $\cdots, 5.4375349x10^7$

A general of the conjecture above as follows (but weaker):

Let every integer $r_0$ exist positive integer $x_0$ such that every odd number $x \ge x_0$ has the form $x=P_{n+m+r_0}-P_n-P_m$, where $m, n \ge 2$ (PS: inspired from the comment of Lev Borisov be low)

Or simpler:

Conjecture 2: Is every odd positive integer of the form $P_{c}-P_a-P_b$ ?

See also:

A stronger comjecture 2

Conjecture 3 (Maillet's conjecture) Is every even positive integer of the form $P_{a}-P_b$

I have just computed the conjecture 3 is true with $x=2, 4, \cdots, 10^6$ and $3873$ numbers $x = $$9.82197492x10^8$$,$ $\cdots$$,$ $9.82226054x10^8$







See also:

  • 2
    $\begingroup$ You might as well assume that $m \geq 2$, since otherwise $x$ is even. $\endgroup$ Jun 28, 2018 at 11:13
  • 11
    $\begingroup$ Why the "computer science" tag? Why the "prime ideals" tag? You know, there's no law that says you must use five tags – you're allowed to use fewer. $\endgroup$ Jun 28, 2018 at 13:06
  • 4
    $\begingroup$ Conjectures on prime constellations should imply this is possible even with $m=2$. $\endgroup$
    – Wojowu
    Jun 28, 2018 at 16:36
  • 3
    $\begingroup$ Indeed it seems that there is no need to link to a text file to give the simply stated answer to @GerhardPaseman's question. As your file indicates, $m = 6787300$ and $n = 6787562$ (not much larger than $10^7$, for reasonable values of "not much larger"), so $P_m = 118988791$, $P_n = 118993759$, and $P_{m + n} = 247982549$. $\endgroup$
    – LSpice
    Jul 1, 2018 at 16:20
  • 3
    $\begingroup$ @MattF., that was my edit in the title, and I forgot the old maxim that 'any' should never be used as a quantifier, because it can easily be read both as 'every' and as 'some'. I agree that the current title is better. $\endgroup$
    – LSpice
    Jul 2, 2018 at 12:27

2 Answers 2


The conjecture 3 is mentioned here and here, in which it is called the Maillet conjecture.

The conjecture 2 is true.

It can be seen by rewriting $n=P_c−P_a−P_b$ as $P_a+P_b=P_c-n$, and it has a solution as long as the sets $\left\{x|x=P_a+P_b\right\}$ and $\left\{x|x=P_c-n\right\}$ have nonempty intersection. Call the two sets $X$ and $Y$ respectively, and let $A_N$ denote the elements of a set $A$ which is not greater than $N$.

We have $|X_N|=O(\frac{N}{logN})$, and a result of Montgomery and Vaughan shows that $|Y_N|≥\frac{N}{2}-CN^{1-c}$ for some $C$ and $c$. As $|X_N\cup Y_N|≤\frac{N}{2}+n$ and $|X_N|+|Y_N|≥\frac{N}{2}+n$ for sufficiently large $N$, it turns out that the two sets have nonempty intersection.

  • $\begingroup$ I have voted your answer. I will accept your answer in next some days, but now I also need the answer for conjecture 1 and conjecture 2. I changes the title of question to get the answer for conjecture 1 and 2. $\endgroup$ Jul 3, 2018 at 16:17
  • 1
    $\begingroup$ Edited to answer conjecture 2. $\endgroup$ Jul 4, 2018 at 8:29
  • $\begingroup$ I am sorry, I don't see the bounty symbol on your answer. $\endgroup$ Jul 9, 2018 at 5:14

This isn't an answer to conjecture 1, just an elaboration of things others mentioned.

There is every reason to think that the answer to conjecture 1 is yes and even that for fixed $m \gt 1$ we have that for each odd integer $x \geq 3$ there are infinitely many $n$ with $p_{n+m}-p_n-p_m=x.$ We don't know that there is even one, however we can say with good precision how the number of solutions should be expected to grow as $n \rightarrow \infty.$ Computations always (seem) to conform to this with good fidelity as far as checked. I'll explain that a bit and then point out that that fixing $m=2$ would likely not be the most fruitful way to find a solution.

So with $m=3$ and $p_3=5$ solving $p_{n+3}-p_n-5=15$ amounts to finding two primes $p_N$ and $p_n$ with

  • $p_N-p_m=20$

  • $N-m=3.$

We do not know that $p_N-p_m=20$ infinitely often. For each even integer g define $\pi_g(X)$ to be the number of pairs $(p_N,p_n)$ with $p_N-p_n=g$ and $p_N \leq X.$ Then $\pi_2(X)$ is the number of twin primes up to $X$ We don't know that this grows without bound but can expect that it is assymptotic (in some sense which could be made precise) to $C_2\frac{X}{\ln^2X}$ and that the constant $C_2=\prod_p(1-\frac1{(p-1)^2})$ with the product over the odd primes.

There is a similar constant $C_g$ for each even $g.$ Namely $C_g=C_2\prod_p\frac{p-1}{p-2}$ where the product is over odd primes which divide $g.$

So $p_n+20$ is expected to be prime more often that $p_2$ but about as often as $p+10.$ i.e. $\pi_{20}(X) \sim \pi_{10}(X)\sim \frac{4}{3}\pi_2(X).$ That is a prediction which holds up quite well as far as checked.

For an amazing exposition of this read Heuristic Reasoning In The Theory of Numbers by Polya.

But our goal had an extra condition. Want something like to have

$p_n,p_n+6,p_n+14,p_n+20$ to all be prime but $p_n+h$ be composite for $h=2,4,8,10,12,16,18.$ It is possible to similarly predict how often that happens up to $X.$ Summing over finite number of cases would give a prediction for the number of solutions of the given problem.

$m=2$ is a little easier but I wanted to use a different value.

But where is it most fruitful to look for solutions to $p_{n+m}-p_n-p_m=x$?

Here is a graph for $p_{n+m}-p_n-p_m=101$ with $n+m\lt 200.$

I find $168$ solutions. here is a graph. enter image description here

Of the $168$ solutions, $61$ of them have $m \in\{34,35,36,37,38\}$ and the ratio $\frac{n}{m}$ ranges from $3$ to $5.2$

Using $p_k \sim {k}{\ln{k}}$ one might be able to argue that for fixed $r=\frac{n}{m}$ ( really $r$ in some small range like $[3,5]$) there is a narrow range of $m$ values that would be worth searching first. Perhaps the best $r$ (given $x$) could be estimated. I would have guessed $r \sim 1$ is best, but that seems not to be the case based on this one computation. Perhaps the optimal range is past $m+n=200.$

  • $\begingroup$ I hope that you will research detail about this conjecture? Thank You very much. $\endgroup$ Jul 9, 2018 at 0:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.