15.7 Prime Number Patterns If there are quadratic polynomials that generate a high percentage of prime numbers, then there is a pattern to the distribution of these generated primes. Can we make this pattern visible? If we arrange the numbers in a spiral, then the formulas that generate numbers that lie diagonally are quadratic polynomials. In the following example, the numbers 1, 3, 7, 13, 21, and so on are generated by the formula n 2 + n + 1 for integer values of n 0.
Because so many primes are generated by quadratic polynomials, we can see these primes as diagonal "streaks." These streaks are visible even with only 100 numbers. For example, the primes 5, 19, 41, and 71 are generated by the polynomial 4 n 2 + 10 n + 5 for n = 0, 1, 2, and 3. Another way to see these streaks is to arrange the numbers diagonally at right angles to the main diagonal from the upper left to the lower right. However, with 100 numbers, they are less visible than with the spiral arrangement.
Screen 15-5a is a screen shot of Program 15 C5 displaying a 500 x 500 spiral arrangement. [9] When we start with 41 instead of 1, the prime numbers generated by Euler's original polynomial n 2 + n + 41 appear dramatically as the long diagonal from the lower left corner to the upper right corner. Other diagonal streaks are visible.
Screen 15-5a. Prime streaks with the numbers arranged in a spiral. The long diagonal streak from the lower left corner to the upper right corner consists of the primes generated by Euler's quadratic polynomial.
Screen 15-5b is a screen shot of Program 15 C5 displaying a 500 x 500 diagonal arrangement. With more numbers, the prime streaks are more visible. Unlike the spiral arrangement, the streaks here are all parallel to the main diagonal. Screen 15-5b. Prime streaks with the numbers arranged diagonally across the main diagonal.
|
Top |