This graphic shows very good how prime numbers are created
Each new number starts a line of divisors.
The divisor lines interact together and sometimes all of them skip a number and that number is a prime number.
You can find the same divisors in any direction and distance. And the line will only contain the divisors of the chosen number. That means that once all divisors have been met, the line will stay infinitely empty
The number 1.000.000 has 1 million potential divisor lines.
Here is another graphic that shows the repeating pattern on the left side.