Wilson’s theorem resultThe following is a variant of Wilson’s theorem:Let p be a positive integer and 1≤k≤p-1. Then:p is prime if and only if(p-k)!(k-1)!≡(-1)k(modp).For particular k=1,2,… one gets nice results.