Prime number generation/pruning