\documentclass{minimal}
\usepackage{amsmath}
\usepackage[active,tightpage]{preview}
\setlength\PreviewBorder{1pt}
\usepackage{pgf}
\usepackage{tikz}
\usepgfmodule{plot}
\usepgflibrary{plothandlers}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{shadings}
\begin{document}
\begin{preview}
%tikz
\begin{tikzpicture}[every node/.style={draw,scale=1pt,
minimum width=30pt,inner sep=3pt,
line width=0pt,draw=black}]
\matrix[row sep=2pt,column sep=2pt]
{\node[fill=black]{861};&
\node[fill=blue]{863};&
\node[]{865};&
\node[fill=black]{867};&
\node[]{869};&
\node[]{871};&
\node[fill=black]{873};&
\node[]{875};&
\node[fill=blue]{877};&
\node[fill=black]{879};&
\node[left color=blue,right color=-blue]{881};&
\node[left color=blue,right color=-blue]{883};&
\node[fill=black]{885};&
\node[fill=blue]{887};&
\node[]{889};\\
\node[fill=black]{831};&
\node[]{833};&
\node[]{835};&
\node[fill=black]{837};&
\node[fill=blue]{839};&
\node[]{841};&
\node[fill=black]{843};&
\node[]{845};&
\node[]{847};&
\node[fill=black]{849};&
\node[]{851};&
\node[fill=blue]{853};&
\node[fill=black]{855};&
\node[left color=blue,right color=-blue]{857};&
\node[left color=blue,right color=-blue]{859};\\
\node[fill=black]{801};&
\node[]{803};&
\node[]{805};&
\node[fill=black]{807};&
\node[left color=blue,right color=-blue]{809};&
\node[left color=blue,right color=-blue]{811};&
\node[fill=black]{813};&
\node[]{815};&
\node[]{817};&
\node[fill=black]{819};&
\node[left color=blue,right color=-blue]{821};&
\node[left color=blue,right color=-blue]{823};&
\node[fill=black]{825};&
\node[left color=blue,right color=-blue]{827};&
\node[left color=blue,right color=-blue]{829};\\
};
\end{tikzpicture}
\end{preview}
\end{document}