Skip to content

Commit 0de4780

Browse files
committed
chore: Add image to function question analysis post
1 parent 011b2d0 commit 0de4780

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_posts/2024-07-03-function-question-analysis-2.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ categories: 奥赛 信息奥赛 函数题库
77

88
原题链接: [素数个数](http://ybt.ssoier.cn:8088/problem_show.php?pid=1151)
99

10+
![](https://raw.githubusercontent.com/jamiesun/images/master/default/qzMvZi.png)
11+
1012
## 解题思路
1113

1214
这道题目要求我们计算从 2 到 n(其中 n 的最大值为 50000)之间的素数个数。素数是指除了 1 和自身以外不再有其他因数的自然数。解决这个问题我们可以使用 **埃拉托色尼筛法(Sieve of Eratosthenes)**,这是一种高效的计算素数的算法。

0 commit comments

Comments
 (0)