luogu#P7884. 【模板】Meissel-Lehmer
【模板】Meissel-Lehmer
Problem Description
Given an integer , find the value of .
denotes the number of prime numbers among the integers from to .
Input Format
One line with one integer .
Output Format
One line with one integer, representing the required value.
10
4
Hint
For of the testdata, .
Translated by ChatGPT 5