Text this: A generalization of a necessary and sufficient condition for primality due to Vantieghem