A344660 Lexicographically earliest sequence of distinct nonnegative terms on a square spiral such that each term, when written with one digit per square, forms no prime value in the eight sums when each digit is added to each of its eight nearest neighbors.
0, 1, 8, 80, 4, 6, 88, 7, 77, 2, 24, 40, 44, 22, 26, 27, 3, 5, 9, 72, 28, 42, 46, 48, 62, 64, 66, 68, 87, 13, 31, 37, 78, 82, 84, 86, 60, 400, 422, 222, 63, 601, 73, 33, 15, 35, 17, 10, 18, 224, 226, 404, 406, 424, 227, 286, 36, 99, 39, 19, 53, 55, 57, 59, 90, 93, 772, 228, 240, 408, 440, 426
Offset: 1
Examples
The eight digits that are in contact with the initial zero are 1, 8, 8, 0, 4, 6, 8, 8: none of them is prime [forcing the sum a(k) + 0 to be nonprime, with k<9]; more generally, no term of the square spiral added to any of its eight nearest neighbors sums to a prime.
Comments