In an exam environment:
Knowing your primes are good. There are two main methods you can try during an exam: the Sieve of Eratosthenes and the Sieve of Nygard. The Sieve of Eratosthenes is a classic, and good for finding primes within a range (preferably with the starting point close to $1$), and is quite suitable in your case.
The Sieve of Nygard is more suited towards finding things such as finding primes close to a highly divisible number. It is more suited to finding potential prime numbers close to a highly divisible number.
Ex: Assume that you are asked to find primes that are between $20$ and $40$.
You can try to use the Sieve of Nygard on $30$, you can note that $30 = 2 \cdot 3 \cdot 5$.
First, you start with this list:
$$20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40.$$
Since $2 \mid 30$, all numbers of the form $30 + 2n, n \in \mathbb{Z}$ can be eliminated. Yielding:
$$21, 23, 25, 27, 29, 31, 33, 35, 37, 39.$$
Since $3 \mid 30$, all numbers of the form $30 + 3n, n \in \mathbb{Z}$ can be eliminated as well. Yielding:
$$23, 25, 29, 31, 35, 37.$$
Since $5 \mid 30$, all numbers of the form $30 + 5n, n \in \mathbb{Z}$ can be eliminated as well. Yielding:
$$23, 29, 31, 37.$$
Now, we have much less numbers to check for primality, and some test division will be sufficient.
Note that since the primes are fairly small in this problem, we don't really have to use the Sieve of Nygard. Knowing your primes will be sufficient. However, this sieve comes in handy when being asked for prime numbers near $5040$ or some other larger number.