You are here
Homeprime difference function
Primary tabs
prime difference function
The prime difference function is an arithmetic function for any positive integer $n$, denoted as $d_{{n}}$ and gives the difference between two consecutive primes $p_{{n}}$ and $p_{{n+1}}$:
$d_{{n}}\equiv p_{{n+1}}p_{{n}}\;.$ 
For example:

$d_{{1}}=p_{{2}}p_{{1}}=32=1$,

$d_{{10}}=p_{{11}}p_{{10}}=3129=2$,

$d_{{100}}=p_{{101}}p_{{100}}=547541=6$,

$d_{{1000}}=p_{{1001}}p_{{1000}}=79277919=8$,

$d_{{10000}}=p_{{10001}}p_{{10000}}=104743104729=14$ and so forth.
The first few values of $d_{{n}}$ for $n=1,2,3,\ldots$ are $1,2,2,4,2,4,2,4,6,2,6,4,2,4,6,6,2,6,4,2,\ldots$ (OEIS A001223).
Keywords:
number theory, arithmetic function
Type of Math Object:
Definition
Major Section:
Reference
Mathematics Subject Classification
11N05 no label found11A25 no label found11A41 no label found Forums
 Planetary Bugs
 HS/Secondary
 University/Tertiary
 Graduate/Advanced
 Industry/Practice
 Research Topics
 LaTeX help
 Math Comptetitions
 Math History
 Math Humor
 PlanetMath Comments
 PlanetMath System Updates and News
 PlanetMath help
 PlanetMath.ORG
 Strategic Communications Development
 The Math Pub
 Testing messages (ignore)
 Other useful stuff
Recent Activity
Sep 17
new question: numerical method (implicit) for nonlinear pde by roozbe
new question: Harshad Number by pspss
Sep 14
new problem: Geometry by parag
Aug 24
new question: Scheduling Algorithm by ncovella
new question: Scheduling Algorithm by ncovella
new question: numerical method (implicit) for nonlinear pde by roozbe
new question: Harshad Number by pspss
Sep 14
new problem: Geometry by parag
Aug 24
new question: Scheduling Algorithm by ncovella
new question: Scheduling Algorithm by ncovella