title: Docker Image - How can I get the right SHA256(prime, timestamp, nonce) to get the auth token?
body: <p>I have installed the docker image to hit the APIs. I have started an iOS app where, I have to brute force a prime number between the range of prime numbers that could go to maximum 20 bit number in its binary form.</p>
  <p>Now, form an <code>SHA256(prime_binary_form, timestamp, nonce)</code> hit an API that checks the SHA256(value) that is a path param and &quot;value&quot; is sent as body in this POST request. If the prime number matches, only then I will get the auth token</p>
  <p>The nonce keeps increasing until I get a match with numeric-alpha value <code>&quot;0123456789abcdef&quot;</code> with the <code>SHA256 hash value</code> that was mined. for example: if the difficulty is 2, then the <code>SHA256 value</code> should start with &quot;01&quot; and hence the nonce changes until i get a match.</p>
  <p>I am able to get the SHA256 with prime number and a match with the difficulty. But since I have more than 130k prime numbers and difficulty with max 16, How do I use minimal entropy (time and CPU usage) to get the right SHA256 / prime number to hit the API to get the auth token. As simple brute force of prime numbers has hundreds of thousands of calls to the server, which does not seem right.</p>
  <p>I was told that since it is a docker image the value is prime number is generated when the application is created.</p>
  <p>Can anyone help me with a code snippet? I am currently using Swift on Xcode.</p>