Skip to main content

洛谷 P7884 【模板】Meissel-Lehmer

给定整数 nn,求出 π(n)\pi(n) 的值。

π(n)\pi(n) 表示 1n1 \sim n 的整数中质数的个数。