Weighted distribution of residual indices and the contribution of higher-degree primes1 versionW_e4azb96sv1 · current