We can say that a number $p$ is prime modulo $N$ if for any two numbers $1<a,b<p$, $ab \not\equiv p \pmod N$. We will define $p(n)$ to be the number of primes mod $n$. I'm wondering about the asymptotic value of $p(n)$. If $p \leq \sqrt n$ then $p$ is prime modulo $n$ iff it's prime, so $p(n) = \Omega(\frac {\sqrt n} {\log n})$. Experimentally I get that the ratio $\frac {p(n)}{\sqrt n}$ varies around 0.5. Is $p(n) = \Theta(\sqrt n)$? Does $\frac {p(n)}{\sqrt n}$ converge? To what? What about $\frac 1n \sum_{i=2}^n \frac {p(i)}{\sqrt i}$? For 10000 it's about 0.51, and for 9000 0.515. A possible approach I've thought about is to prove that for every $d, x$, the number of $n \leq x$ modulo which $d$ is prime is $O(\frac{x\sqrt x}d)$, which gives a bound of $O(\sqrt x \log \log x)$ on average. I believe this can be done using sieve methods like here, but it seems like the proof there only gives a bound of $O(\frac{x \root4\of x}{\sqrt d})$ which gives a bound of $O(x^\frac34)$ on average, and I don't know enough about sieve methods to improve on that.
a\equiv b(\mod c)
you see $a\equiv b(\mod c),$ and if you typea\equiv b\pmod c
you see $a\equiv b\pmod c.$ I edited this question so that that latter form is used. (If more than one object is to be included in the parenthesis, then you need curly braces{ }
, thus:a\equiv b\pmod{cd}
gives you $a\equiv b\pmod{cd}. \qquad$ $\endgroup$