Reference implementation of the rapid prime client.