A347358 The prime numbers visited on a square spiral when starting at 1 and then stepping to the smallest unvisited prime number that is visible from the current number.
1, 2, 3, 11, 5, 13, 29, 17, 7, 19, 31, 23, 37, 53, 41, 61, 43, 59, 47, 71, 83, 67, 89, 73, 101, 79, 107, 127, 97, 131, 103, 137, 109, 139, 113, 149, 173, 151, 179, 157, 181, 163, 191, 167, 193, 227, 197, 229, 293, 233, 211, 239, 199, 251, 223, 257, 307, 241, 311, 263, 313, 269, 317, 271, 331, 277
Offset: 1
Keywords
Examples
The square spiral is numbered as follows: . 17--16--15--14--13 . | | . 18 5---4---3 12 29 | | | | | 19 6 1---2 11 28 | | | | 20 7---8---9--10 27 | | 21--22--23--24--25--26 . a(1) = 1. The central starting number. a(2) = 2, a(3) = 3 as 2 is the smallest visible unvisited prime from 1, and 3 is the smallest visible unvisited prime from 2. a(4) = 11 as 11 is the smallest visible unvisited prime from 3. Note that from 3 the smaller unvisited primes 5 and 7 are hidden from 3 by the numbers 4 and 1. a(7) = 29 as 29 is the smallest visible unvisited prime from 13. Note that from 13 the smaller unvisited primes 7, 17, 19, 23 are hidden from 13 by numbers 3, 14, 4, 2 respectively.
Links
- Scott R. Shannon, Image of the path for the first 7000 terms. The colors are graduated across red, orange, yellow to show the relative step order. Note the yellow lines, terms in the 5000-7000 range, step in all directions across the entire spiral.
- Scott R. Shannon, Image of the path for the first 14000 terms. The colors are now graduated across red, orange, yellow, green, blue. Note how the steps for the later colors, terms in the 1000-14000 range, are almost all horizontal or vertical and none step diagonally into the inner spiral.
- Scott R. Shannon, Image of the path for the first 21000 terms. The colors are now graduated across red, orange, yellow, green, blue, indigo, violet. Note how the later colors, terms in the 15000-21000 range, again behave like the earlier 5000-7000 term range and step in random directions across the spiral.
- Eric Weisstein's World of Mathematics, Visible Point.
- Wikipedia, Ulam Spiral.
Comments