The primes 3, 5, and 17 have the property such that their quadratic nonresidues are also primitive roots. Find the next two primes with this same property.