#2987. [GESP202606 三级 C++] 第 19 题

[GESP202606 三级 C++] 第 19 题

判断某个数是否是质数,枚举范围可适当缩小(遍历到 i\sqrt{i} 而非 ii ),提升效率。

{{ select(1) }}

  • 正确
  • 错误