"7 Is Prime" mod(factorial(7-1)+1,7)
'9 Is Not Prime' mod(factorial(9-1)+1,9)
'101 Is Prime' mod(factorial(101-1)+1,101)