In general determinants are not additive (related question). Nevertheless, matrices $A$ and $B$ can be chosen so that $\det A+\det B=\det\left(A+B\right)$ (related answer).
For which positive integer $n$ can $2 n^{2}$ consecutive prime numbers form a solution of the equation $$ \det A + \det B = \det\left(A + B\right) $$ with two $n\times n$ matrices $A$, $B$?
$n=2$
A solution for $n=2$:
- $A=\begin{pmatrix}17 & 19\\23 & 29\end{pmatrix}$, $B=\begin{pmatrix}31 & 37\\41 & 43\end{pmatrix}$, $\det A=56$, $\det B=-184$, $\det\left(A+B\right)=-128$
There are many solutions for $n=2$ but I don't know if there are infinitely many. Even with the added restriction that the 8 primes must appear in increasing order, I found 110 solutions with entries below ${10}^7$, the first few are:
A = [[17, 19], [23, 29]], B = [[31, 37], [41, 43]], det A = 56, det B = -184, det (A+B) = -128
A = [[149, 151], [157, 163]], B = [[167, 173], [179, 181]], det A = 580, det B = -740, det (A+B) = -160
A = [[521, 523], [541, 547]], B = [[557, 563], [569, 571]], det A = 2044, det B = -2300, det (A+B) = -256
A = [[1277, 1279], [1283, 1289]], B = [[1291, 1297], [1301, 1303]], det A = 5096, det B = -5224, det (A+B) = -128
A = [[5437, 5441], [5443, 5449]], B = [[5471, 5477], [5479, 5483]], det A = 10850, det B = -10990, det (A+B) = -140
A = [[19853, 19861], [19867, 19889]], B = [[19891, 19913], [19919, 19927]], det A = 277830, det B = -279090, det (A+B) = -1260
A = [[103963, 103967], [103969, 103979]], B = [[103981, 103991], [103993, 103997]], det A = 623754, det B = -624006, det (A+B) = -252
A = [[113147, 113149], [113153, 113159]], B = [[113161, 113167], [113171, 113173]], det A = 452576, det B = -452704, det (A+B) = -128
Are there infinitely many solutions $A=\begin{pmatrix}a & b\\c & d\end{pmatrix}$, $B=\begin{pmatrix}e & f\\g & h\end{pmatrix}$ where $a<b<c<d<e<f<g<h$ are consecutive primes?
$n=3$
Solutions for $n=3$:
- $A=\begin{pmatrix}3 & 5 & 7\\29 & 37 & 41\\43 & 59 & 67\end{pmatrix}$, $B=\begin{pmatrix}11 & 13 & 17\\19 & 23 & 31\\47 & 53 & 61\end{pmatrix}$, $\det A=120$, $\det B=-24$, $\det\left(A+B\right)=96$
- $A=\begin{pmatrix}2 & 3 & 5\\19 & 23 & 31\\41 & 53 & 61\end{pmatrix}$, $B=\begin{pmatrix}7 & 11 & 13\\17 & 29 & 37\\43 & 47 & 59\end{pmatrix}$, $\det A=176$, $\det B=448$, $\det\left(A+B\right)=624$
There is at least one solution formed from 18 consecutive primes with entries in increasing order first in $A$ and then in $B$:
$$A=\begin{pmatrix}726371 & 726377 & 726379\\726391 & 726413 & 726419\\726431 & 726457 & 726463\end{pmatrix},\quad B=\begin{pmatrix}726469 & 726487 & 726497\\726521 & 726527 & 726533\\726559 & 726589 & 726599\end{pmatrix}$$
$n=4$
A solution for $n=4$:
- $A=\begin{pmatrix}2 & 3 & 5 & 7\\11 & 13 & 17 & 19\\23 & 29 & 31 & 71\\79 & 89 & 107 & 127\end{pmatrix}$, $B=\begin{pmatrix}37 & 41 & 43 & 47\\53 & 59 & 61 & 67\\73 & 83 & 97 & 101\\103 & 109 & 113 & 131\end{pmatrix}$, $\det A=744$, $\det B=936$, $\det\left(A+B\right)=1680$
$n>4$
Are there solutions for all $n$? Are there solutions for all $n$ such that entries of each matrix are increasing row-by-row (as in the above examples)? What can be known about solutions?