161. Sundaram sieve
Posted by haifeng on 2011-06-16 15:53:16 last update 0000-00-00 00:00:00 | Answers (1) | 收藏
\begin{matrix} 4&7&10&13&16&\cdots\\ 7&12&17&22&27&\cdots\\ 10&17&24&31&38&\cdots\\ 13&22&31&40&49&\cdots\\ 16&27&38&49&60&\cdots\\ \vdots&\vdots&\vdots&\vdots&\vdots& \end{matrix} 证明 $2n+1$ 是素数当且仅当 $n$ 不在上面的矩阵中.