Tests if input number is prime or not. It uses Miller-Rabin's probabilistic test, returns Yes if input number is prime, No, if it is not, and May be if not certain.
Send a request with the following parameters:
apikey - Your API key
number - The number to be tested for primality
The API returns a JSON object containing the fields status and output.
When the operation is successful, status has a value of "success", and output holds the result of the operation("Yes"; "No"; "May be").
When there is an error in the operation, status has a value of "error", and output holds the error message(s). Multiple error messages are seperated with a "|".
Examples
{ "status" : "success", "output" : "Yes" }
{ "status" : "error", "output" : "Invalid input | API key not stated" }