Processing math: 33%

Problem #12

Prime Gaps

A prime gap is the difference between two successive prime numbers. The n^{th} prime gap is the difference between the (n+1)^{th} and the n^{th} prime numbers.

Using 12.txt, find the largest prime gap for all the primes in the file.

Contributed by Shagun Sodhani

Solved by 220 users

Log in to submit answers.

Is something wrong?

Maintaining a collection of high quality questions is our top priority. If, however, you do find an error, report the problem and we'll make sure it is reviewed soon.