OFFSET
0,1
COMMENTS
REFERENCES
Ervand Kogbetliantz and Alice Krikorian, Handbook of First Complex Prime Numbers, Parts 1 and 2, Gordon and Breach, 1971.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 0..42
Alexei Kourbatov and Marek Wolf, Predicting maximal gaps in sets of primes, arXiv preprint arXiv:1901.03785 [math.NT], 2019.
EXAMPLE
a(3) = 73: There are no primes p = 1 mod 4 between 73 and 89, this gap is the largest up to 89, the length is 16. Note that 73 = (8 - 3i)(8 + 3i) and 89 = (8 - 5i)(8 + 5i). The primes 79 and 83 are inert in Z[i].
MATHEMATICA
Reap[Print[2]; Sow[2]; r = 0; p = 5; For[q = 7, q < 10^7, q = NextPrime[q], If[Mod[q, 4] == 3, Continue[]]; g = q - p; If[g > r, r = g; Print[p] Sow[p]]; p = q]][[2, 1]] (* Jean-François Alcover, Feb 20 2019, from PARI *)
PROG
(PARI) print1(2); r=0; p=5; forprime(q=7, 1e7, if(q%4==3, next); g=q-p; if(g>r, r=g; print1(", "p)); p=q) \\ Charles R Greathouse IV, Apr 29 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Sven Simon, May 17 2003
STATUS
approved