Fast prime number generator