OFFSET
1,1
COMMENTS
See A336494 for an explanation of the sequence and images of the walks.
LINKS
Wikipedia, Ulam Spiral.
EXAMPLE
a(1) = 59. Starting from the square 1 the sequence of adjacent unvisited lowest primes the walk can step to are 2,3,11,29,13,31,59. Once the square 59 is visited there are no other unvisited adjacent squares containing primes, so the walk terminates.
CROSSREFS
KEYWORD
nonn,walk,more
AUTHOR
Scott R. Shannon, Jul 26 2020
STATUS
approved