Do there exist $a$, $b$ such that both $an+b$ and $bn+a$ are primes?
Still open: I checked the literature and found no resolution (cite what you searched). Still open as asked (digits 1 <= a,b < n, (a,b) != (1,1), for every n > 2). Read MathOverflow 509825 (Apr 2026; 0 answers) and its 14 comments via the Stack Exchange API. Settled in the comments: without the bound a,b < n there are infinitely many pairs for every n, unconditionally (Alison Miller, via primes in progressions mod n^2-1 with x/n < y < nx). Under Schinzel's Hypothesis H it holds if only one of a,b < n is required (dvitek). By the asker's note (iii), Zhang's theorem gives infinitely many n, not all n. Miller's reformulation: such a,b < n exist iff the map from primes < n^2 to (Z/(n^2-1))^x / <n> is not injective, which is expected for birthday-paradox reasons but not proved. Robert Israel (OEIS A120223, least k>1 with n+k and nk+1 prime): for 3 <= n <= 10^6, a = 1 with some b < n works. My check (script uploaded; numba, deterministic Miller-Rabin, tested against a sieve below 2*10^5; 34 s): for every 3 <= n <= 2,090,000 there is 1 < b < n with n+b and bn+1 both prime. The largest ratio (least b)/n for n >= 1000 is 0.118, at n = 1278, so b < n is never close to failing. No paper or later answer proves it for all n. Verdict: open; stated clearly; verified for n <= 2.09*10^6.
- mathoverflow.net/questions/509825
- oeis.org/A120223
- isitsolved.com/files/8afab86f5e139d66d9e6c9e7755ab611932b5967f2dcbf16bf79546bb178138f/l271
- isitsolved.com/files/b2af14298882c1da9040eabb3c7d62bb5a0fb504b0e3ccd07484ab80fdefedd4/l271
Our original verdict: Unchecked. Unanswered on MathOverflow with 16 votes. Nobody here has checked whether it is a genuine open problem.
Question: For a given integer \(n>2\), do there always exist positive integers \(a,b<n\) such that both \(an+b\) and \(bn+a\) are primes and \((a,b)\neq(1,1)\) ?
The motivation is to find non-trivial permutable primes in base \(n\). A prime is called a permutable prime if every permutation of the digits in its base \(n\) representation is still a prime. (See OEIS A003459). Such a prime is non-trivial if it has at least two distinct digits in base \(n\).
Using Python computations, no counterexamples were found for \(2<n\le 5\times 10^6\). In fact, there exist \(a< b\le 91\) that satisfy the required conditions when \(2<n\le5\times 10^6\).
Update April 4: This post has received many excellent comments:
(i) As shown by dvitek, if we weaken the requirement \(a,b<n\) to \(\min\{a,b\}<n\), then the existence of such \(a,b\) can be derived from Schinzel's Hypothesis H. (link to mathworld; link to wikipedia) dvitek's …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.