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
Jul 5
new correction: Error in proof of Proposition 2 by alex2907
Jun 24
new question: A good question by Ron Castillo
Jun 23
new question: A trascendental number. by Ron Castillo
Jun 19
new question: Banach lattice valued Bochner integrals by math ias
Jun 13
new question: young tableau and young projectors by zmth
Jun 11
new question: binomial coefficients: is this a known relation? by pfb
Jun 6
new question: difference of a function and a finite sum by pfb
new correction: Error in proof of Proposition 2 by alex2907
Jun 24
new question: A good question by Ron Castillo
Jun 23
new question: A trascendental number. by Ron Castillo
Jun 19
new question: Banach lattice valued Bochner integrals by math ias
Jun 13
new question: young tableau and young projectors by zmth
Jun 11
new question: binomial coefficients: is this a known relation? by pfb
Jun 6
new question: difference of a function and a finite sum by pfb