第29207题 单选题
以下哪个C++代码片段可以正确实现判断一个正整数n(n≥2)是否为质数的基础算法?

本题不考虑头文件包含、编译警告等细节,仅考查算法逻辑的正确性

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析