Prime number generation or prime number testing