Add primality test function decorator.
Add usage of function decorator.