Computational reduction of Wilson's primality test for modern cryptosystems