Avoid a race condition when checking to see if an account is prime.
Merge pull request #21 from jk0/master

Avoid a race condition when checking to see if an account is prime.