"Meissel-Lehmer method of computing pi(x)" - читать интересную книгу автора (Lagarias et al.)