Primes API Documentation

This is a brief documentation on how to use the Primes API, located at http://sethriedel.com/primes/api/primes.php

Syntax

This API can only be called with the HTTP GET method. The usage is as follows:

Result

The result is returned in JSON, as follows:

{
    count: Integer
    primes: Integer Array
}
		

where count is the number of prime numbers in the result set and primes is the result set of prime numbers less than the limit.

Testing

There is a testing front-end for this api located at http://sethriedel.com/primes/test.html