OFFSET
0,1
COMMENTS
LINKS
Alexei Kourbatov, Table of n, a(n) for n = 0..42
EXAMPLE
a(3) = 89: There are no primes p = 1 mod 4 between 73 and 89, this gap is the largest up to 89, the gap size is 16.
MATHEMATICA
Reap[Print[5]; Sow[5]; 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[q] Sow[q]]; p = q]][[2, 1]] (* Jean-François Alcover, Feb 20 2019, from PARI *)
PROG
(PARI) print1(5); r=0; p=5; forprime(q=7, 1e9, if(q%4==3, next); g=q-p; if(g>r, r=g; print1(", "q)); p=q)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexei Kourbatov, Feb 16 2016
STATUS
approved