calculate prime number before determining when to post.