Counting up from zero, if you find a prime number, is there a certain intervall you can skip knowing for sure that sequent prime number will not be skipped?
For reference, I am writing a program which searchs for prime numbers by checking every number up from 2. The problem is that once the number is big enough it takes very much time to find the next number. For example, if the program detects a 10-digit prime number, can I skip a certain intervall knowing that the next one won't be left out?