I don't know How to draw the following special table in tikz?
I know some elementary commands of tikz but I am confused! Any suggest are appreciate.
UPDATE: WME:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0)--(0,10)--(10,10)--(10,0)--(0,0);
\draw (0,1)--(10,1);
\draw (0,2)--(10,2);
\draw (0,3)--(10,3);
\draw (0,4)--(10,4);
\draw (0,5)--(10,5);
\draw (0,6)--(10,6);
\draw (0,7)--(10,7);
\draw (0,8)--(10,8);
\draw (0,9)--(10,9);
%---------------------
\draw (1,0)--(1,10);
\draw (2,0)--(2,10);
\draw (3,0)--(3,10);
\draw (4,0)--(4,10);
\draw (5,0)--(5,10);
\draw (6,0)--(6,10);
\draw (7,0)--(7,10);
\draw (8,0)--(8,10);
\draw (9,0)--(9,10);
%------------------------
\draw[very thick](0,10)--(10,10)--(10,0)--(0,0)--(0,9)-- (9,9)--(9,1)-- (1,1)--(1,8)--(8,8)--(2,8)--(8,8)--(8,2)--(2,2)--(2,7)--(7,7)--(7,3)--(3,3)--(3,6) --(6,6)--(6,4)--(4,4)--(4,5) --(5,5);
\end{tikzpicture}
\end{document}
Best Answer
My solution uses the spiral code which I translated to lua with some modification.
Update I figured out that the sketch may belong to the Ulam spiral. Thus, the diagonal lines in case of some prime numbers should indicate the diagonal lines within such a spiral.
Just for fun, I adapted my example code to generate the figure similar to the Wikipedia article. (I'll hope it is not too much off topic)