Primes in arithmetic progressions to large moduli. III