OFFSET
1,1
COMMENTS
Called Gauss circle primes by Ehrenborg.
LINKS
Robert Israel, Table of n, a(n) for n = 1..1188
Thomas Ehrenborg, Gauss Circle Primes, arXiv:2502.06804 [math.GM], 2025. See Table 1 p. 3.
MAPLE
N:= 200: # for terms in A000328(1..N)
V:= Array(0..N): V[0]:= 1:
for x from 1 to N do
for y from 0 to x do
if y = 0 or y = x then m:= 4 else m:= 8 fi;
s:= ceil(sqrt(x^2+y^2));
if s > N then break fi;
V[s]:= V[s] + m
od od:
select(isprime, ListTools:-PartialSums(convert(V, list))); # Robert Israel, May 27 2025
PROG
(PARI) select(isprime, vector(200, n, 1 + 4*sum(j=0, n^2\4, n^2\(4*j+1) - n^2\(4*j+3))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Feb 12 2025
STATUS
approved
