<?xml version="1.0" encoding="UTF-8"?>

<record version="3" id="11818">
 <title>near-square prime</title>
 <name>NearSquarePrime</name>
 <created>2009-06-12 21:23:03</created>
 <modified>2009-06-17 20:09:48</modified>
 <type>Definition</type>
 <creator id="13766" name="PrimeFan"/>
 <author id="13766" name="PrimeFan"/>
 <classification>
	<category scheme="msc" code="11A41"/>
 </classification>
 <preamble>% this is the default PlanetMath preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics)
%\usepackage{graphicx}
% for neatly defining theorems and propositions
%\usepackage{amsthm}
% making logically defined graphics
%\usepackage{xypic}

% there are many more packages, add them here as you need them

% define commands here
</preamble>
 <content>A {\em near-square prime} is a prime number $p$ of the form $n^2 + k$, with $n$ being any integer and $0 &lt; |k| &lt; |n|$ also an integer. Since for any nonzero real number $x$ it is always the case that $x^2 \geq 0$, it doesn't matter if $n$ is negative.

\begin{tabular}{|r|r|r|r|r|r|r|r|r|r|r|r|r|}
   5  &amp;    &amp;    &amp;     &amp;     &amp;    &amp;    &amp;    &amp;    &amp;    &amp;      &amp;     &amp; 149 \\
   4  &amp;    &amp;    &amp;     &amp;     &amp; 29 &amp;    &amp; 53 &amp;    &amp;    &amp;      &amp;     &amp;     \\
   3  &amp;    &amp;    &amp;     &amp;     &amp;    &amp;    &amp;    &amp; 67 &amp;    &amp;  103 &amp;     &amp;     \\
   2  &amp;    &amp;    &amp;  11 &amp;     &amp;    &amp;    &amp;    &amp;    &amp; 83 &amp;      &amp;     &amp;     \\
   1  &amp;    &amp;  5 &amp;     &amp;  17 &amp;    &amp; 37 &amp;    &amp;    &amp;    &amp;  101 &amp;     &amp;     \\
   0  &amp;  1 &amp;  4 &amp;   9 &amp;  16 &amp; 25 &amp; 36 &amp; 49 &amp; 64 &amp; 81 &amp;  100 &amp; 121 &amp; 144 \\
 $-1$ &amp;    &amp;  3 &amp;     &amp;     &amp;    &amp;    &amp;    &amp;    &amp;    &amp;      &amp;     &amp;     \\
 $-2$ &amp;    &amp;    &amp;   7 &amp;     &amp; 23 &amp;    &amp; 47 &amp;    &amp; 79 &amp;      &amp;     &amp;     \\
 $-3$ &amp;    &amp;    &amp;     &amp;     &amp;    &amp;    &amp;    &amp;    &amp;    &amp;   97 &amp;     &amp;     \\
 $-4$ &amp;    &amp;    &amp;     &amp;     &amp;    &amp;    &amp;    &amp;    &amp;    &amp;      &amp;     &amp;     \\
 $-5$ &amp;    &amp;    &amp;     &amp;     &amp;    &amp; 31 &amp;    &amp; 59 &amp;    &amp;      &amp;     &amp; 139 \\
\end{tabular}

Fermat primes are near-square primes for $k = 1$ with the additional requirement that $n = 2^{2^m - 1}$, while Carol primes are near-square primes for $k = -2$ with the additional requirement that $n = 2^m - 1$.

For $k = -1$, only $n = 2$ gives a prime, namely 3.</content>
</record>
