For 32-bit integers, one needs only a 512 byte lookup table and and a few adds and muls to test for primality