What is the smallest integer greater than such that there is some interval of integers which contains exactly primes?
Credits: Thanks to randomusername on AoPS for this problem, I just wanted to share it with the rest of Brilliant as well
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Consider an interval of 1 0 0 0 integers which contains no primes. Now, decrease every term in that interval by 1 . Notice that the only change we make is removing the largest integer and replacing it with an integer one smaller than that, so only 1 term changes. It follows that the number of primes in the interval can only change by 1 , 0 , or − 1 , since only one integer changes. Eventually, by repeating this process, we will find an interval with many more primes, for example, the interval from 1 to 1 0 0 0 . This means that somewhere in between, we had an interval containing 1 1 primes, so the answer is 1 1