Annual Appeal: Please make a donation to keep the OEIS running. In 2018 we replaced the server with a faster one, added 20000 new sequences, and reached 7000 citations (often saying "discovered thanks to the OEIS").
Generate the prime sequence with primes labeled 1 mod 4 or 3 mod 4. Add count of primes to sequence if just 6 primes occur before interruption by a prime congruent to 1 mod 4.
EXAMPLE
a(5)=9 because 9 sets of 6 primes occur below 10^5, each run interrupted by a prime congruent to 1 mod 4.