АВТ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
Textbooks FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

37. Simple Numbers

Time Limit: 1.5 seconds
Memory Limit:65536KB
Points:100
View Problem Statistics Submit Problem added debug

Дано натуральное число n, не превосходящее 10000000. Вывести количество простых чисел в интервале от 1 до n включительно.

Input

Число n.

Output

Одно число - количество простых чисел.

Sample

InputOutput
104

View Problem Statistics Submit Problem discussion Author/source:
Sorted Problems / Mathematics / Theory of numbers /
38. Series of Farej 37. 134. Simple Numbers 2 876. Wordplay
Educational Courses / Data Structures and Algorithms / Enumeration, Dynamic Programming, Greedy algs /
1179. Requests for presentations 37. 295. Zoo
time generating 0.078 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.