A prime gap is the difference between two successive prime numbers. The n-th prime gap, denoted gn, is the difference between the (n + 1)-th and the n-th prime number, i.e.
We have g1 = 1, g2 = g3 = 2, and g4 = 4. The sequence (gn) of prime gaps has been extensively studied. One also writes g(pn) for gn.