Made mlib.isPrime able to take tables