prime number detector returns false if not prime and true if prime.