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

<record version="2" id="7792">
 <title>safe prime</title>
 <name>SafePrime</name>
 <created>2006-03-31 09:45:55</created>
 <modified>2007-01-12 12:21:07</modified>
 <type>Definition</type>
 <creator id="13766" name="PrimeFan"/>
 <author id="12809" name="CompositeFan"/>
 <author id="12020" name="Lando47"/>
 <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>Given a prime $q$, if ${{q - 1} \over 2} = p$, where $p$ is another prime number, then $q$ is a {\em safe prime}. It follows that $q - 1 = 2p$ (and thus a semiprime) and $p$ is a Sophie Germain prime.

Every safe prime matches to a Sophie Germain prime this way, and some safe primes are Sophie Germain primes themselves too, matching to yet another safe prime. A set of primes linked in this way is called a Cunningham chain of the first kind. For example, 2, 5, 11, 23, 47. With Pocklington's criterion, one can prove the primality of a safe prime if one has first proven the primality of its matching Sophie Germain prime.

The first few safe primes are 5, 7, 11, 23, 47, 59, 83, 107, 167, 179, 227, ... These are listed in A005385 of Sloane's OEIS. As of 2005, the largest known safe prime is $7068555 \times 2^{121302} - 1$.

Safe primes have been used in various methods of cryptography, but the safety of their use depends not just on these mathematical properties but also on their being large enough that their multiples can't be factored in a reasonable period of time by contemporary computers.</content>
</record>
