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.

A297406 Where the prime race among 8k+1, ..., 8k+7 changes leader.

Original entry on oeis.org

2, 11, 37, 83, 197, 227, 271, 293, 347, 373, 487, 547, 853, 907, 1069, 1447, 1733, 1831, 1949, 2027, 2053, 2131, 2237, 2251, 2309, 2719, 2749, 3019, 3061, 3083, 3733, 3779, 3877, 3931, 4919, 5179, 5303, 5347, 5407, 6661, 6911, 6949, 6967, 7459, 7789
Offset: 1

Views

Author

Sean A. Irvine, Dec 29 2017

Keywords

Crossrefs

Programs

  • Maple
    X:= Vector(4): X[2]:= 1: m:= 3: p:= 3: count:= 1: R:= 2:
    for i from 2 while count < 100 do
      p:= nextprime(p);
      j:= ((p mod 8)+1)/2;
      X[j]:= X[j]+1;
      mp:= max[index](X);
      if mp <> m and X[mp] > X[m] then
        m:= mp;
        R:= R,p;
        count:= count+1;
       fi
    od:
    R; # Robert Israel, Nov 21 2024