OFFSET
1,4
COMMENTS
For each prime number prime(n) in Ulam's spiral, we search for the least 3 primes k, u, v, with k < u < v, such that (prime(n), k, u, v) are the vertices of a square whose sides are parallel to the rows and columns of the spiral, where a(n) equals k.
Given a prime p, some vertices are close to p. For example, for prime 13, the vertices are (13, 67, 73, 79), while for others they are not, such as 7, where the least primes are (7, 56527, 58567, 58687). On the other hand, primes such as 2, 3, 5, 19 and 23 are not vertices of any square with prime vertices.
Conjecture: if a prime is vertex of a square of prime vertices, then it is vertex of infinitely many squares whose vertices are prime. For example, in the case of 11, some of them are: (11, 59, 127, 131), (11, 137, 233, 239), (11, 769, 977, 991).
Questions: Which prime numbers are not vertices of any square with prime vertices? What condition must they satisfy?
Are there infinite primes p and q which are vertices of two squares with prime vertices? For example, 47 and 353 are vertices of the squares (47, 353, 109, 347) and (47, 353, 173, 359).
EXAMPLE
For A000040(5) = 11, it is observed that 11 together with 127, 131 and 59 are the vertices of a square whose center is 55. And this is the smallest square of prime vertices that has 11 as one of its vertices. Since 59 is the smallest number between 127, 131 and 59, then a(5) = 59.
. . . . .
—11-28-53-86-127—
—12-29-54-87-128—
—13-30-55-88-129—
—32-31-56-89-130—
—59-58-57-90-131—
. . . . .
CROSSREFS
KEYWORD
sign
AUTHOR
Gonzalo Martínez, May 01 2025
STATUS
approved
