ArticleslgStudy

mathematics

Prime gap

Prime gap is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Prime gap rather than just read about it. In short: A prime gap is the difference between two successive prime numbers. The n {\displaystyle n} -th prime gap, denoted g n {\displaystyle g_{n}} or g ( p n ) {\displaystyle g(p_{n})} is the difference between the ( n + 1 ) {\displaystyle (n+1)} th and the n {\displaystyle n} -th prime numbers, i.e., g n = p n + 1 − p n {\displaystyle g_{n}=p_{n+1}-p_{n}} For example, since the first few primes are 2, 3, 5, 7, 11..., we…

Prime gap — main illustration
Prime gap — illustration

Key takeaways

  • Prime gap belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Prime gap to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Prime gap from memory before moving on to harder problems.

Reference excerpt

A prime gap is the difference between two successive prime numbers. The n {\displaystyle n} -th prime gap, denoted g n {\displaystyle g_{n}} or g ( p n ) {\displaystyle g(p_{n})} is the difference between the ( n + 1 ) {\displaystyle (n+1)} th and the n {\displaystyle n} -th prime numbers, i.e.,

g n = p n + 1 − p n {\displaystyle g_{n}=p_{n+1}-p_{n}}

For example, since the first few primes are 2, 3, 5, 7, 11..., we have g 1 = 1 {\displaystyle g_{1}=1} , g 2 = g 3 = 2 {\displaystyle g_{2}=g_{3}=2} , g 4 = 4 {\displaystyle g_{4}=4} . The sequence g n {\displaystyle g_{n}} of prime gaps has been extensively studied; however, many questions and conjectures remain unanswered. The first 60 prime gaps are:

1, 2, 2, 4, 2, 4, 2, 4, 6, 2, 6, 4, 2, 4, 6, 6, 2, 6, 4, 2, 6, 4, 6, 8, 4, 2, 4, 2, 4, 14, 4, 6, 2, 10, 2, 6, 6, 4, 6, 6, 2, 10, 2, 4, 2, 12, 12, 4, 2, 4, 6, 2, 10, 6, 6, 6, 2, 6, 4, 2, ... (sequence A001223 in the OEIS). By the definition of g n {\displaystyle g_{n}} every prime can be written as

p n + 1 = 2 + ∑ i = 1 n g i . {\displaystyle p_{n+1}=2+\sum _{i=1}^{n}g_{i}.}

Simple observations The first, smallest, and only odd prime gap is the gap of size 1 between 2, the only even prime number, and 3, the first odd prime. All other prime gaps are even. There is only one pair of consecutive gaps having length 2: the gaps g 2 {\displaystyle g_{2}} and g 3 {\displaystyle g_{3}} between the primes 3, 5, and 7. For any integer n {\displaystyle n} , the factorial n ! {\displaystyle n!} is the product of all positive integers up to and including n {\displaystyle n} . Then in the sequence

n ! + 2 , n ! + 3 , … , n ! + n , {\displaystyle n!+2,\;n!+3,\;\ldots ,\;n!+n,}

the first term is divisible by 2, the second term is divisible by 3, and so on. Thus, this is a sequence of n − 1 consecutive composite integers, and it must belong to a gap between primes having length at least n {\displaystyle n} . It follows that there are gaps between primes that are arbitrarily large, that is, for any integer N {\displaystyle N} , there is an integer m {\displaystyle m} with g m ≥ N {\displaystyle g_{m}\geq N} . However, prime gaps of n {\displaystyle n} numbers can occur at numbers much smaller than n ! {\displaystyle n!} . For instance, the first prime gap of size larger than 14 occurs between the primes 523 and 541, while 15! is the vastly larger number 1 307 674 368 000. The average gap between primes increases as the natural logarithm of these primes, and therefore the ratio of the prime gap to the primes involved decreases (and is asymptotically zero). This is a consequence of the prime number theorem. From a heuristic view, we expect the probability that the ratio of the length of the gap to the natural logarithm is greater than or equal to a fixed positive number k {\displaystyle k} to be e − k {\displaystyle e^{-k}} ; consequently the ratio can be arbitrarily large. Indeed, the ratio of the gap to the number of digits of the integers involved does increase without bound. This is a consequence of a result by Westzynthius. In the opposite direction, the twin prime conjecture posits that g n = 2 {\displaystyle g_{n}=2} for infinitely many integers n {\displaystyle n} .

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Prime gap

Start with the simplest possible case. Write down what Prime gap claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Prime gap before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Prime gap ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Prime gap

In research
Prime gap appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Prime gap in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Prime gap is common in secondary-school and first-year university syllabi. It links to neighbouring topics Arithmetic functions, Prime numbers, so understanding it makes those chapters shorter.
In everyday life
Look for Prime gap outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Prime gap in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Prime gap means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Prime gap out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Prime gap in simple terms?

A prime gap is the difference between two successive prime numbers. The n {\displaystyle n} -th prime gap, denoted g n {\displaystyle g_{n}} or g ( p n ) {\displaystyle g(p_{n})} is the difference between the ( n + 1 ) {\displaystyle (n+1)} th and the n {\displaystyle n} -th prime numbers, i.e., g…

Why does Prime gap matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Prime gap?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Prime gap.

Tags

  • Arithmetic functions
  • Prime numbers

Keep exploring