跳转到内容

This page is also in English.

Read it in English

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

第 n 个素数(The nth prime number,nth_prime)

第 n 个质数,把 2 算作第一个。

怎么写

nth_prime(n)

n
哪个质数,从 1 开始。接受一个整数。

示例

  • nth_prime⁡(10)=29\displaystyle \operatorname{nth\_prime}(10) = 29
    nth_prime(10)

    在求解器中,nth_prime(10) 的结果是 29。

    在求解器中打开