Restful web service to generate primes up to a given value using various methods