A092638
Absolute value of difference between counts of uninterrupted runs of single primes in A092636 and A092637.
Original entry on oeis.org
0, 2, 3, 9, 15, 50, 238, 1383, 1458, 443, 11349
Offset: 1
a(2)=2 because in A092636 the count is 5 and in A092637 the count is 3. 5-3=2.
A093184
Number of consecutive runs of just 1 odd nonprime congruent to 3 mod 4 below 10^n.
Original entry on oeis.org
0, 4, 76, 1120, 13428, 151342, 1642285, 17405478, 181923798, 1883330510, 19364376037, 198115964781, 2019328569227
Offset: 1
a(3)=76 because 76 single nonprime runs occur below 10^3, each run interrupted by a nonprime congruent to 1 mod 4
-
A091113 = Select[4 Range[0, 10^4] + 1, ! PrimeQ[#] &];
A091236 = Select[4 Range[0, 10^4] + 3, ! PrimeQ[#] &];
lst = {}; Do[If[Length[s = Select[A091236, Between[{A091113[[i]], A091113[[i + 1]]}]]] == 1, AppendTo[lst, s]], {i, Length[A091113] - 1}]; Table[Count[Flatten[lst], x_ /; x < 10^n], {n, 4}] (* Robert Price, May 30 2019 *)
A093397
Absolute value of difference between counts of uninterrupted runs of single nonprimes in A093183 and A093184.
Original entry on oeis.org
0, 1, 2, 6, 9, 31, 88, 205, 1636, 2884, 4569, 30270, 14874
Offset: 1
a(3)=2 because in A093183 the count is 74 and in A093184 the count is 76. 76-74=2.
A092636
Number of consecutive prime runs of 1 prime congruent to 1 mod 4 below 10^n.
Original entry on oeis.org
1, 5, 31, 208, 1555, 12465, 102704, 869060, 7540342, 66571720, 595513442
Offset: 1
a(3)=31 because 31 single primes occur below 10^3, each interrupted in the run by a prime congruent to 3 mod 4.
-
A002144 = Select[4 Range[0, 10^4] + 1, PrimeQ[#] &];
A002145 = Select[4 Range[0, 10^4] + 3, PrimeQ[#] &];
lst = {}; Do[If[Length[s = Select[A002144, Between[{A002145[[i]], A002145[[i + 1]]}]]] == 1, AppendTo[lst, Last[s]]], {i, Length[A002145] - 1}]; Table[Count[lst, x_ /; x < 10^n], {n, 4}] (* Robert Price, May 31 2019 *)
-
a(n)=my(p=2,q=3,t);forprime(r=5,nextprime(10^n),if(q%4==1&&p%4==3&&r%4==3,t++);p=q;q=r);t \\ Charles R Greathouse IV, Sep 30 2011
Showing 1-4 of 4 results.