回答編集履歴
1
微修正
test
CHANGED
@@ -28,6 +28,8 @@
|
|
28
28
|
|
29
29
|
「[エラトステネスの篩](https://ja.wikipedia.org/wiki/%E3%82%A8%E3%83%A9%E3%83%88%E3%82%B9%E3%83%86%E3%83%8D%E3%82%B9%E3%81%AE%E7%AF%A9)」を**愚直に**実装してみた:
|
30
30
|
```C
|
31
|
+
#include <stdbool.h>
|
32
|
+
|
31
33
|
// エラトステネスの篩
|
32
34
|
// https://ja.wikipedia.org/wiki/%E3%82%A8%E3%83%A9%E3%83%88%E3%82%B9%E3%83%86%E3%83%8D%E3%82%B9%E3%81%AE%E7%AF%A9
|
33
35
|
void calc(bool prime_nums[], int n) {
|