Interesting idea to use a grid. I doubt it will work for this question, since writing things in that grid format in a sense splits into arithmetic progressions modulo $p$, and usually saying things about the primes in a progression is harder.
However, I cannot help but mention that using a grid like that was applied brilliantly by Maier to prove a counter-intuitive result, (using the Prime Number Theorem for Arithmetic Progessions) and the idea is now called the Maier Matrix Method.
(A small digression, but it is interesting!)
The Maier Matrix Method
There are questions regarding primes in short intervals, and we can ask ourselves what does $$\pi(x+y)-\pi(x)$$ look like? To say anything meaningful, $y$ cannot be too small, but here lets suppose $y=\log^B(x)$ for some $B>2$. Selberg proved that under the Riemann Hypothesis, we have $$\pi(x+y)-\pi(x)\sim \frac{y}{\log x}$$ as $x\rightarrow \infty$ for almost all $x$. (A set with density $\rightarrow 1$) It was then conjectured that this asymptotic must hold for all $x$ which are sufficiently large. (This conjecture was made for several reasons, one of which is that it is true under Cramer's probabilistic model)
In a surprising turn of events, Maier showed it was false, and that there exists $\delta>0$ and arbitrarily large values of $x_1$ and $x_2$ such that both $$\pi(x_1 +\log^B (x_1))-\pi (x_1)> (1+\delta)\log^{B-1}(x_1)$$and $$\pi(x_2 +\log^B (x_2))-\pi (x_2)< (1-\delta)\log^{B-1}(x_2)$$hold, despite the fact that the asymptotic holds for a set of density $1$.
He proved this using a method which is now called the "Maier Matrix Method." Essentially, it is just drawing a grid which is similar to the one above, and then applying a clever combinatorial argument. The columns are arithmetic progressions, and by PNT4AP, we can easily say things about them to understand the number of primes in the grid. There is a little trick with oscillation of the Dickman Function, but then basically by the pigeon hole principle the question is solved.
I definitely think you might find this expository article by Dr.Andrew Granville to be interesting. (It is quite readable, and gives an a more in depth, and very clear explanation)