Primes Of The Shape X² + Ny²: The Distribution On Average And Prime Number Races