Find n primes after a given prime number, without using any function that checks for primality October 5, 2022 by Tarik Sure. Read about the Sieve of Eratosthenes. Instead of checking for primality, you generate prime numbers.