@ISPRIME[n] : Returns 1 if the (64-bit integer) n is a prime number.

 

Example:

 

echo %@isprime[7]

1

 

echo %@isprime[22]

0

 

echo %@isprime[30181]

1