未分类题

编写函数,判断一个数字是否为素数,是则返回字符串YES,否则返回字符串NO。

正确答案:importmathdefIsPrime(v):n=int(math.sqrt(v)+1)foriinrang......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)