1
$\begingroup$

Suppose I give you $(a, b, M)$ and ask you to compute the number of primes not exceeding $M$ which are congruent to $b$ mod $a.$ What is the most efficient way of doing it? (without congruence restrictions there is the Meissel-Lehmer algorithm).

$\endgroup$
2
  • 1
    $\begingroup$ Are you thinking of $a$ fixed, and $M$ large? Computing via the explicit formula and finding zeros of $L$-functions, would seem a good way to me -- would have complexity about $a M^{1/2+\epsilon}$. $\endgroup$
    – Lucia
    Commented Feb 7, 2018 at 21:05
  • $\begingroup$ @Lucia Yes, I am thinking of fixed $a.$ How much precision would be needed for the zeros? And without congruence conditions, is the explicit formula faster (theoretically or practically)than Meissel-Lehmer? $\endgroup$
    – Igor Rivin
    Commented Feb 7, 2018 at 21:08

0

You must log in to answer this question.