I threw together a computer program to list all the prime numbers under a million (there are 78,498 of them) and count the frequency of each p % 50 value (excluding 2 and 5 which are unique special cases).
- 1: 3934
- 3: 3946
- 7: 3893
- 9: 3924
- 11: 3918
- 13: 3927
- 17: 3913
- 19: 3928
- 21: 3923
- 23: 3932
- 27: 3936
- 29: 3886
- 31: 3906
- 33: 3936
- 37: 3957
- 39: 3928
- 41: 3936
- 43: 3924
- 47: 3922
- 49: 3927
Note that this is very close to a uniform distribution, with the “winner” (37, with 3957 primes) having only 1.8% higher frequency than the last place (29, 3886).
The set of “primes congruent to $\pm1$ or $\pm7$ modulo 25” corresponds to $\{1, 7, 18, 24, 26, 32, 43, 49\}$ in the above list, which have a combined relative frequency of $\frac{15678}{78496} \approx 0.19973$.
We had a similar discussion recently in Who wants to be a Millionaire? Primes between 1
and 1000, which discussed the last digits of prime numbers.
In short, the larger the upper bound on your prime numbers is, the closer the distribution gets to uniformity. This is because of the form of Dirichlet's theorem that states:
Equivalently, the primes are evenly distributed (asymptotically) among the congruence classes modulo $d$ containing $a$'s coprime to $d$.
Though, for finite lists of primes, the distribution may not be exactly uniform, and determining the “winner” is complicated without actually counting the frequencies.