n
个素数是多少? nthPrime(6)
应该返回13。
testString: 'assert.strictEqual(nthPrime(6), 13, "nthPrime(6)
should return 13.");'
- text: nthPrime(10)
应该返回29。
testString: 'assert.strictEqual(nthPrime(10), 29, "nthPrime(10)
should return 29.");'
- text: nthPrime(100)
应该返回541。
testString: 'assert.strictEqual(nthPrime(100), 541, "nthPrime(100)
should return 541.");'
- text: nthPrime(1000)
应该返回7919。
testString: 'assert.strictEqual(nthPrime(1000), 7919, "nthPrime(1000)
should return 7919.");'
- text: nthPrime(10001)
应该返回104743。
testString: 'assert.strictEqual(nthPrime(10001), 104743, "nthPrime(10001)
should return 104743.");'
```