|
inlineconstexpr |
Returns the nth prime number.
Defined in Header
Parameters
n
: unsigned argument. If n is greater than 10'000, behavior is undefined.Return value
The value of the nth prime number is returned.
Notes
Example
Optimized Conversion Call
If the input types are integral, the result is susceptible not to be representable in the input type. A converter can be applied to choose the output type and get the correct result.
Example