Localization at primes in algebras over fields