Primes in algebras over fields