is Prime
Checks if a KBigInteger is a prime number using trial division. A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.
Return
true if n is prime, false otherwise
Parameters
n
The KBigInteger to test for primality