← All projects / How Long the Lines Are
In The Prime Projections the primes are solid orange lines. The rows run all the way across, but the columns stop. This page measures every line: how far each column runs new from the diagonal down, and how far each ring runs new from the corner in. One rule gives every length. Split the number as squarely as you can, d × e, and the line is d + e plus or minus 1 long.
The same picture as on The Prime Projections: ring n is row n, square k is column k, orange is new and green is already inside. Switch to the columns to see only the part of each column that runs new without a break from the diagonal, or to the rings to see each ring's unbroken run in from the corner. The dashed lines are 1/2, 2/3, 3/4 and 4/5 of the way along. Move over the picture to read off a square, and tap it to measure that line below.
A single column, turned on its side so ring k is on the left and the rings below run to the right. Or a single ring, square 1 on the left and the corner on the right. The bracket is the unbroken run, and the outlined square is where it stops. Under it is the grid of factors that makes that square green.
A square is green when n × k can be written as a × b with a and b both below n. Whenever that happens, the four numbers fit in a little grid. Split the ring as n = g × h and the square as k = i × j, with g and h on top and i and j underneath. Multiply across and you get the ring and the square. Multiply down and you get a and b. They are both below the ring exactly when i is smaller than h and j is smaller than g.
exact
If n × k = a × b, let g be the largest number that divides both n and a, so n = g × h and a = g × i with nothing shared between h and i. Then h divides i × b, so h divides b: b = h × j. Putting it back, k = i × j. So every way of making n × k from smaller numbers is a grid, and a grid with i < h and j < g is a way of making it. Checked on all 180,300 squares to ring 600, with no misses.
not new
Splitting a × b = c × d into four pieces like this is a standard step in number theory, sometimes called the four number theorem. What this page adds is reading the picture's line lengths off it.
exact
Every green square is four numbers g, h, i, j flattened down to two, the ring g × h and the square i × j. The picture is that shadow. A solid line is where nothing casts one, because one side has no split that fits, and for a whole row or a column past half-way that means it is prime.
Going down column k = i × j, a grid needs a ring g × h with g bigger than j and h bigger than i. The first ring where that can happen is (i + 1) × (j + 1), which is k + i + j + 1. The squarest split makes i + j smallest, so that split decides the length. Going in along ring n = g × h, the biggest square that fits is (g − 1) × (h − 1), which is n − g − h + 1, and again the squarest split wins.
| Column | Squarest split | Runs new for | Stops at ring | Because |
|---|---|---|---|---|
| 12 | 3 × 4 | 8 rings, 12 to 19 | 4 × 5 = 20 | 20 × 12 = 15 × 16 |
| 36 | 6 × 6 | 13 rings, 36 to 48 | 7 × 7 = 49 | 49 × 36 = 42 × 42 |
| 98 | 7 × 14 | 22 rings, 98 to 119 | 8 × 15 = 120 | 120 × 98 = 105 × 112 |
| 100 | 10 × 10 | 21 rings, 100 to 120 | 11 × 11 = 121 | 121 × 100 = 110 × 110 |
| 97, prime | 1 × 97 | 99 rings, 97 to 195 | 2 × 98 = 196 | 196 × 97 = 194 × 98 |
exact
Write the column as d × e as squarely as you can. It is new from ring k down to ring k + d + e, then green at ring (d + 1) × (e + 1). Checked on every column to 799.
exact
A prime only splits as 1 × p, the least square split there is, so it gets the tallest line: rings p to 2p + 1. It always stops at ring 2p + 2, because (2p + 2) × p = (p + 1) × 2p. Column 101 runs from ring 101 to 203 and stops at 204.
exact
The same rule turned round. Ring 36 = 6 × 6 is new for its last 11 squares and green at square 5 × 5 = 25, because 36 × 25 = 30 × 30. Checked on every ring to 1,600.
exact
For a prime ring, 1 + p − 1 is p: the whole ring. That is why the rows go all the way across and the columns don't. A column is d + e + 1 rings tall out of a picture that keeps going down for ever, but a ring only has n squares to run.
A column that is a small number m times a prime q stops at ring (m + 1) × (q + 1). As q grows, that stop sits closer and closer to m/(m + 1) of the way along the ring. So the ends of the columns pile up on the same lines as the fan on The Prime Projections. Rings do it too: ring m × q stops at square (m − 1) × (q − 1), close to (m − 1)/m of the way along.
| Columns | How many below 800 | Where the run ends, as a share of the ring | Heading for |
|---|---|---|---|
| a prime | 139 | 0.333 to 0.499 | 1/2 |
| 2 × a prime | 77 | 0.500 to 0.665 | 2/3 |
| 3 × a prime | 54 | 0.625 to 0.747 | 3/4 |
| 4 × a prime | 44 | 0.667 to 0.796 | 4/5 |
The low ends come from the smallest primes: column 2 stops at ring 6, a third of the way along.
A prime column doesn't stop dead at ring 2p + 2. It turns dotted, and the dots thin out in steps. Ring n stays new in column p exactly when n's largest factor other than itself is p or less. Between 2p and 3p that is every odd ring. Between 3p and 5p it is the rings with no 2 or 3 in them, and so on through the primes. Measure column 97 above and watch the steps at 2 × 97, 3 × 97 and 5 × 97.
| Rings | New in the column | The sieve says |
|---|---|---|
| 2p to 3p | 31.4 of 63 (49.8%) | 1/2, 31.5 of 63 |
| 3p to 5p | 21.0 of 63 (33.4%) | 1/3, 21.0 of 63 |
| 5p to 7p | 16.8 of 63 (26.7%) | 8/30, 16.8 of 63 |
| 7p to 11p | 14.4 of 63 (22.8%) | 48/210, 14.4 of 63 |
| 11p to 13p | 13.1 of 63 (20.8%) | 480/2,310, 13.1 of 63 |
Every prime column from 61 up, to ring 1,600. The share is what's left after crossing out the multiples of 2, then of 3, then of 5 and 7 and 11.
exact
For column p, the only grid is g × h over 1 × p, which needs g bigger than p and h at least 2. So ring n is green exactly when it has a factor bigger than p with something left over, and new when its largest factor is p or less. Checked for every prime column to ring 1,600, with no misses. Read across the picture, the steps sit at 1/2, 1/3, 1/5 and 1/7 of the way along.
A prime column is solid from ring p to ring 2p + 1, and every prime ring in that stretch crosses it. Each crossing square holds p × q, two primes less than a factor of 2 apart.
not new
There is always a prime between p and 2p. That is Bertrand's postulate, proved by Chebyshev in 1852, so every solid column is crossed by at least one solid row past the diagonal. Below 800 every one of the 139 prime columns is crossed at least twice.
exact
Each solid column starts on a crossing, at the diagonal. Its last square is ring 2p + 1, so it ends on a crossing exactly when 2p + 1 is prime too. Those are the Sophie Germain primes, 34 of them below 800, a family studied since the 1820s.
exact
Give it a number's squarest split and it says exactly where that column stops, where that ring stops, and how the column's tail thins out. Nothing is left to chance in the picture.
exact
The tallest columns are the ones with no split at all, and a number with no split is a prime. So spotting a p + 2 tall column means already knowing p is prime. The picture can't point to the next tall column any faster than testing the number itself. It is the sieve, drawn in two directions, not a shortcut past it.