|
Start with 7 in the center cell. Rules: Write Prime(n-1) in a cell and,
if Prime(n-1) == 1 mod 5, then move to upper cell, append Prime(n) to the cell.
if Prime(n-1) == 2 mod 5, then move to right cell, append Prime(n) to the cell.
if Prime(n-1) == 3 mod 5, then move to lower cell, append Prime(n) to the cell.
if Prime(n-1) == 4 mod 5, then move to left cell, append Prime(n) to the cell.
Sequence gives sequence of primes appearing in the cell to the right of center cell.
|