Fast prime number generator.