prime
Retrieve the nth prime number, where n is a 1-indexed position. Returns the prime at that index.
Instructions
Return the nth prime (1-indexed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Which prime to return (1-indexed). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |