05 How do I find the position of a prime number?

The function “Prime Number Index (n)” indicates the position of the entered number in the sequence of prime numbers.

Here, a prime number is simply entered and the output shows the position of the prime number or, in the case of an “incorrect entry”, that it is not a prime number.