摘要: 描述 输出n以内所有的素数。 保证 n 是100以内的整数。 样例 输入:5 输出:[2, 3, 5] 方法一 #include <iostream> #include <cstdio> #include <cmath> using namespace std; // 判断一个整数是否为素数 boo 阅读全文
posted @ 2022-02-05 23:25 hellozwx 阅读(41) 评论(0) 推荐(0) 编辑