A380877 Primes p where the prime race 12m+1 versus 12m+7 is tied.
2, 3, 5, 13, 17, 433, 457, 461
Offset: 1
Keywords
Programs
-
Mathematica
s={};Do[p=Prime[pp];If[Length[Select[Prime[Range[pp]],Mod[#,12]==1&]]==Length[Select[Prime[Range[pp]],Mod[#,12]==7&]],AppendTo[s,p]],{pp,100}];s (* James C. McMahon, Mar 03 2025 *)
-
Python
from sympy import nextprime; p, d = 2, 0 while p < 500: if d == 0: print(p, end = ', ') p = nextprime(p); r = p%12 if r == 7: d += 1 elif r == 1: d -= 1
Comments