<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
</head>
<body>
<script type="text/javascript">
// 补全代码
Number.prototype._isPrime = function () {
let isPrime = true
for (let i = 2; i < this - 1; i ++) {
if (this % i === 0) {
isPrime = false
break
}
}
return isPrime
}
</script>
</body>
</html>

京公网安备 11010502036488号