Find n primes after a given prime number, without using any function that checks for primality

Sure. Read about the Sieve of Eratosthenes. Instead of checking for primality, you generate prime numbers.

Leave a Comment