Do $n=2m+1$ and $\big(2^m\bmod(m\cdot n)\big)\in\{n+1,3n-1\}$ imply $n$ prime?
Equivalently, for $n=2m+1$, do $2^m\equiv\pm1\pmod n$ and $2^m\equiv2\pmod m$ imply $n$ prime?
Note: equivalence follows from the Chinese Remainder Theorem for $m>2$, and examination otherwise. $2^m\equiv\pm1\pmod n$ is an Euler test for $n$.
What if we add the stronger requirements that $2^{(m-1)/2}\equiv\pm1\pmod m$ ? That $m$ pass the strong pseudoprime test to base 2?
The $n$ with $m$ prime that pass the test include all the safe primes (OEIS A005385) above $5$. The corresponding $m$ are Sophie Germain primes (OEIS A005384).
Proof: safe primes $p=2q+1$ match $2^q\equiv\pm1\pmod p$ by Euler's criterion, and match $2^q\equiv2\pmod q$ by Fermat's little theorem.
I fail to prove that conversely, the $n=2m+1$ with $m$ prime that pass the test include nothing but the safe primes.
There are a few other $n$ that pass the test, dubbed pseudo-safe-primes, A300193; terms less than $2^{42}$ b300193; first ones:
683, 1123, 1291, 4931, 16963, 25603, 70667, 110491, 121403, 145771, 166667, 301703, 424843, 529547, 579883, 696323, 715523, 854467, 904103, 1112339, 1175723, 1234187, 1306667, 1444523, 2146043, 2651687, 2796203, 2882183, 3069083, 3216931, 4284283, 4325443, 4577323, 5493179, 5764531, 9949943,
The smallest even $m$ are for $n=252\,435\,584\,573$, $1\,200\,060\,997\,853$, $2\,497\,199\,739\,653$, $453\,074\,558\,824\,253$... which are prime. Any such even $m$ is an even pseudoprime (OEIS A006935).
All odd $m$ are pseudoprimes (OEIS A001567) passing a Fermat test, with the corresponding $n$ passing a strong pseudoprime test.