Aside from a lookup table of primes, is there any neater way of detecting
that a number is prime?