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 28
new question: how to contest an entry? by zorba
new question: simple question by parag
Sep 26
new question: Latent variable by adam_reith
Sep 17
new question: Harshad Number by pspss
Sep 14
new problem: Geometry by parag
new question: how to contest an entry? by zorba
new question: simple question by parag
Sep 26
new question: Latent variable by adam_reith
Sep 17
new question: Harshad Number by pspss
Sep 14
new problem: Geometry by parag