Let $p_1$ through $p_6$ be consecutive primes in ascending order, and consider the simultaneous equation $$p_1x+p_2y=p_3\\p_4x+p_5y=p_6$$

Motivating Question: For what $p_1$ does the system provide integer solutions $(x,y)$?

Solving the system, we have $$x=\frac{p_3p_5-p_2p_6}{p_1p_5-p_2p_4}\quad\text{and}\quad y=\frac{p_3-p_1x}{p_2}=\frac{p_1p_6-p_3p_4}{p_1p_5-p_2p_4}$$ so it is equivalent to asking when $p_1p_5-p_2p_4$ divides $p_3p_5-p_2p_6$.

I asked this on MSE a few months ago and user @RGS has created a script for the first $100,000$ primes.

I give the results here.

```
for p1 = 2 we have (x,y) = (16.0,-9.0)
for p1 = 5 we have (x,y) = (-9.0,8.0)
for p1 = 19 we have (x,y) = (-13.0,12.0)
for p1 = 59 we have (x,y) = (-3.0,4.0)
for p1 = 151 we have (x,y) = (-1.0,2.0)
for p1 = 487 we have (x,y) = (-2.0,3.0)
for p1 = 587 we have (x,y) = (-1.0,2.0)
for p1 = 739 we have (x,y) = (-2.0,3.0)
for p1 = 881 we have (x,y) = (-2.0,3.0)
for p1 = 1097 we have (x,y) = (-1.0,2.0)
for p1 = 1453 we have (x,y) = (-2.0,3.0)
for p1 = 1697 we have (x,y) = (-5.0,6.0)
for p1 = 2213 we have (x,y) = (-2.0,3.0)
for p1 = 2239 we have (x,y) = (-2.0,3.0)
for p1 = 2243 we have (x,y) = (-2.0,3.0)
for p1 = 3037 we have (x,y) = (-2.0,3.0)
for p1 = 3217 we have (x,y) = (-2.0,3.0)
for p1 = 4019 we have (x,y) = (-3.0,4.0)
for p1 = 4073 we have (x,y) = (-2.0,3.0)
for p1 = 4093 we have (x,y) = (-2.0,3.0)
for p1 = 4241 we have (x,y) = (-5.0,6.0)
for p1 = 5477 we have (x,y) = (-2.0,3.0)
for p1 = 6199 we have (x,y) = (-2.0,3.0)
for p1 = 6793 we have (x,y) = (-2.0,3.0)
for p1 = 7669 we have (x,y) = (-2.0,3.0)
for p1 = 7877 we have (x,y) = (-2.0,3.0)
for p1 = 8291 we have (x,y) = (-2.0,3.0)
for p1 = 8819 we have (x,y) = (-5.0,6.0)
for p1 = 9041 we have (x,y) = (-3.0,4.0)
for p1 = 9059 we have (x,y) = (-3.0,4.0)
for p1 = 9181 we have (x,y) = (-2.0,3.0)
for p1 = 9461 we have (x,y) = (-2.0,3.0)
for p1 = 9811 we have (x,y) = (-2.0,3.0)
for p1 = 11159 we have (x,y) = (-5.0,6.0)
for p1 = 11467 we have (x,y) = (-3.0,4.0)
for p1 = 11621 we have (x,y) = (-2.0,3.0)
for p1 = 12821 we have (x,y) = (-3.0,4.0)
for p1 = 13877 we have (x,y) = (-2.0,3.0)
for p1 = 15149 we have (x,y) = (-1.0,2.0)
for p1 = 16657 we have (x,y) = (-3.0,4.0)
for p1 = 19421 we have (x,y) = (-2.0,3.0)
for p1 = 19457 we have (x,y) = (-1.0,2.0)
for p1 = 19571 we have (x,y) = (-1.0,2.0)
for p1 = 20021 we have (x,y) = (-3.0,4.0)
for p1 = 20101 we have (x,y) = (-1.0,2.0)
for p1 = 21011 we have (x,y) = (-2.0,3.0)
for p1 = 22039 we have (x,y) = (-1.0,2.0)
for p1 = 22271 we have (x,y) = (-2.0,3.0)
for p1 = 23059 we have (x,y) = (-2.0,3.0)
for p1 = 23761 we have (x,y) = (-1.0,2.0)
for p1 = 24071 we have (x,y) = (-1.0,2.0)
for p1 = 25583 we have (x,y) = (-2.0,3.0)
for p1 = 25997 we have (x,y) = (-2.0,3.0)
for p1 = 29567 we have (x,y) = (-2.0,3.0)
for p1 = 30643 we have (x,y) = (-2.0,3.0)
for p1 = 31153 we have (x,y) = (-3.0,4.0)
for p1 = 31177 we have (x,y) = (15590.0,-15587.0)
for p1 = 31477 we have (x,y) = (-2.0,3.0)
for p1 = 32377 we have (x,y) = (-5.0,6.0)
for p1 = 32503 we have (x,y) = (-6.0,7.0)
for p1 = 33149 we have (x,y) = (-5.0,6.0)
for p1 = 33767 we have (x,y) = (-2.0,3.0)
for p1 = 40459 we have (x,y) = (-1.0,2.0)
for p1 = 40823 we have (x,y) = (-2.0,3.0)
for p1 = 40927 we have (x,y) = (-1.0,2.0)
for p1 = 41143 we have (x,y) = (-2.0,3.0)
for p1 = 41467 we have (x,y) = (-1.0,2.0)
for p1 = 42179 we have (x,y) = (-3.0,4.0)
for p1 = 42181 we have (x,y) = (-1.0,2.0)
for p1 = 42299 we have (x,y) = (-2.0,3.0)
for p1 = 43781 we have (x,y) = (-2.0,3.0)
for p1 = 44501 we have (x,y) = (-2.0,3.0)
for p1 = 44809 we have (x,y) = (-2.0,3.0)
for p1 = 46229 we have (x,y) = (-3.0,4.0)
for p1 = 47501 we have (x,y) = (-1.0,2.0)
for p1 = 47699 we have (x,y) = (-5.0,6.0)
for p1 = 48761 we have (x,y) = (-2.0,3.0)
for p1 = 50261 we have (x,y) = (-5.0,6.0)
for p1 = 51131 we have (x,y) = (-2.0,3.0)
for p1 = 51157 we have (x,y) = (-2.0,3.0)
for p1 = 52289 we have (x,y) = (-5.0,6.0)
for p1 = 54091 we have (x,y) = (-2.0,3.0)
for p1 = 55331 we have (x,y) = (-2.0,3.0)
for p1 = 58367 we have (x,y) = (-5.0,6.0)
for p1 = 58537 we have (x,y) = (-1.0,2.0)
for p1 = 58733 we have (x,y) = (-2.0,3.0)
for p1 = 60089 we have (x,y) = (-5.0,6.0)
for p1 = 60257 we have (x,y) = (-6.0,7.0)
for p1 = 60733 we have (x,y) = (-5.0,6.0)
for p1 = 62927 we have (x,y) = (-5.0,6.0)
for p1 = 63487 we have (x,y) = (-1.0,2.0)
for p1 = 63521 we have (x,y) = (-1.0,2.0)
for p1 = 66643 we have (x,y) = (-3.0,4.0)
for p1 = 67477 we have (x,y) = (-2.0,3.0)
for p1 = 69653 we have (x,y) = (-2.0,3.0)
for p1 = 70583 we have (x,y) = (-3.0,4.0)
for p1 = 70783 we have (x,y) = (-3.0,4.0)
for p1 = 71861 we have (x,y) = (-2.0,3.0)
for p1 = 71881 we have (x,y) = (-2.0,3.0)
for p1 = 71987 we have (x,y) = (-1.0,2.0)
for p1 = 72089 we have (x,y) = (-5.0,6.0)
for p1 = 72817 we have (x,y) = (-6.0,7.0)
for p1 = 73471 we have (x,y) = (-1.0,2.0)
for p1 = 75209 we have (x,y) = (-3.0,4.0)
for p1 = 76079 we have (x,y) = (-5.0,6.0)
for p1 = 77587 we have (x,y) = (-5.0,6.0)
for p1 = 79811 we have (x,y) = (-2.0,3.0)
for p1 = 80681 we have (x,y) = (-2.0,3.0)
for p1 = 81019 we have (x,y) = (-2.0,3.0)
for p1 = 81671 we have (x,y) = (-2.0,3.0)
for p1 = 83071 we have (x,y) = (-2.0,3.0)
for p1 = 83089 we have (x,y) = (-2.0,3.0)
for p1 = 85601 we have (x,y) = (-2.0,3.0)
for p1 = 87557 we have (x,y) = (-12.0,13.0)
for p1 = 91159 we have (x,y) = (-5.0,6.0)
for p1 = 91423 we have (x,y) = (-2.0,3.0)
for p1 = 92107 we have (x,y) = (-2.0,3.0)
for p1 = 93047 we have (x,y) = (-1.0,2.0)
for p1 = 93937 we have (x,y) = (-2.0,3.0)
for p1 = 94477 we have (x,y) = (-5.0,6.0)
for p1 = 95957 we have (x,y) = (-6.0,7.0)
for p1 = 96353 we have (x,y) = (-1.0,2.0)
for p1 = 96553 we have (x,y) = (-6.0,7.0)
for p1 = 97511 we have (x,y) = (-2.0,3.0)
for p1 = 97577 we have (x,y) = (-2.0,3.0)
for p1 = 100391 we have (x,y) = (-5.0,6.0)
for p1 = 101267 we have (x,y) = (-1.0,2.0)
for p1 = 101873 we have (x,y) = (-2.0,3.0)
for p1 = 102451 we have (x,y) = (-2.0,3.0)
for p1 = 103651 we have (x,y) = (-2.0,3.0)
for p1 = 103811 we have (x,y) = (-12.0,13.0)
for p1 = 103991 we have (x,y) = (-2.0,3.0)
for p1 = 104009 we have (x,y) = (-1.0,2.0)
total count is 133
```

Some interesting things can be observed.

Firstly, $\text{sgn}(x)\neq\text{sgn}(y)$. We expect this since the negative value compensates for the large positive value to give a smaller positive value (namely $p_3$ and $p_6$).

Next, we see that apart from five exceptions $p_1=2,5,19,59,31177$, $y$ is always greater than $-x$ by $1$. Also, the same set of values of $(x,y)$ keep on reappearing.

Question 1: Is there an explanation for the regularity with which $$x+y=1\quad?$$

If we substitute this into the simultaneous equation, we get that $$\frac{p_1-p_2}{p_2-p_3}=\frac{p_4-p_5}{p_5-p_6}$$ This might be related to the twin prime conjecture.

Finally, the proportion of primes that satisfy the system is $133/10000=1.33\%$. If we consider the first $90,000, 80,000$ or $70,000$ primes we still see that the proportion hovers around $1.3\%$.

Question 2: What is the value of $$\lim_{x\to\infty}\frac{\pi'(x)}{\pi(x)}$$ where $\pi'(x)$ is the number of primes $p_1\le x$ that satisfy the simultaneous equation?

Note that in a second answer in MSE, it was shown that proving Dickson's Conjecture would prove the infinitude of these integer solutions.