HUSTOJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
ContestProblemSetList
Login
Register
Problem E: 素数个数
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:533
Solved:227
Return to contest
Submit
Submit Record
ShowOff!
Description
编程求2~n(n为大于2的正整数)中有多少个素数。
Input
输入n(2≤n≤50000)。
Output
素数个数。
Sample Input
Copy
10
Sample Output
Copy
4
HINT
Source/Category
函数
入门
⭐