# prime gap

The range of consecutive integers between prime number^{} ${p}_{n}$ and the next prime ${p}_{n+1}$ is called a prime gap, though sometimes this term is applied to the number of members of that range. For example, from 89 to 97 the numbers 90 to 96 form a gap of seven non-primes.

Obviously in between each twin prime^{} there is a gap of 1. Since there are infinitely many primes, so there are infinitely many prime gaps. If the twin prime conjecture is ever proven, it would also prove that there are infinitely many prime gaps of length 1.

A little reflection will show that the easiest way to find a prime gap of a desired length $n$ is to look at the range $n!+2,\mathrm{\dots},n!+n$, though this gap might actually go all the way from $n!-{p}_{\pi (n)}+1$ to $n!+{p}_{\pi (n)}-1$ (with ${p}_{x}$ being the $x$th prime and $\pi (x)$ being the prime counting function). Another way is to look at the range $n\mathrm{\#}+2,\mathrm{\dots},n\mathrm{\#}+n$, where $n\mathrm{\#}$ is the $n$th primorial (though it might be slightly longer).

In general it is often possible to find prime gaps of greater lengths with much smaller numbers. A000230 in Sloane’s OEIS lists integers that begin prime gaps of greater lengths than previous integers. Harald CramÃÂ©r conjectured that for large $n$ a gap of greater lengths than all previous ones can be found at approximately ${(\mathrm{ln}n)}^{2}$.

Title | prime gap |
---|---|

Canonical name | PrimeGap |

Date of creation | 2013-03-22 16:26:07 |

Last modified on | 2013-03-22 16:26:07 |

Owner | PrimeFan (13766) |

Last modified by | PrimeFan (13766) |

Numerical id | 7 |

Author | PrimeFan (13766) |

Entry type | Definition |

Classification | msc 11A41 |