validator.isPrime()

A commodity method for testing if the parameter is an integer and a primer number.