cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A381017 Prime terms of A000328.

Original entry on oeis.org

5, 13, 29, 113, 149, 197, 317, 613, 709, 797, 1009, 1129, 1373, 3001, 3209, 3853, 4513, 5261, 6361, 7213, 11681, 12853, 15373, 16729, 19577, 20593, 21101, 22133, 25997, 30757, 33317, 38669, 53077, 56401, 65101, 68777, 72533, 73517, 95093, 100621, 108637, 114553, 115781, 118213
Offset: 1

Views

Author

Michel Marcus, Feb 12 2025

Keywords

Comments

Called Gauss circle primes by Ehrenborg.

Crossrefs

Programs

  • 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
  • PARI
    select(isprime, vector(200, n, 1 + 4*sum(j=0, n^2\4, n^2\(4*j+1) - n^2\(4*j+3))))