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.

A096628 Integers k for which {prime(1), prime(2), ..., prime(k)} (mod 4) is biased towards 1.

Original entry on oeis.org

2946, 50378, 50380, 50382, 50383, 50384, 50385, 50386, 50387, 50388, 50389, 50390, 50391, 50392, 50414, 50415, 50416, 50417, 50418, 50419, 50420, 50421, 50422, 50424, 50426, 50428, 50430, 50436, 50438, 50446, 50447, 50448, 50450
Offset: 1

Views

Author

Eric W. Weisstein, Jul 01 2004

Keywords

Comments

Indices of negative terms in A038698. - Jianing Song, Feb 20 2019

Crossrefs

Programs

  • Maple
    R:= NULL: count:= 0: v:= 0: p:= 2:
    for i from 2 while count < 100 do
      p:= nextprime(p);
      if p mod 4 = 3 then v:= v+1
      else v:= v-1
      fi;
      if v < 0 then R:= R,i; count:= count+1 fi
    od:
    R; # Robert Israel, Apr 17 2023