🌈 搜索
📅  最后修改于: 2022-03-11 15:03:05.695000             🧑  作者: Mango
function isPrime(num) { for (let i = 2; i * i <= num; i++) if (num % i === 0) return false; return num > 1; }