Primes restful webservice