Let $R$ be commutative ring with identity that contains a field $K$ as a subring. If$ $R is a finite dimensional vector space over the field $K$, prove that every prime ideal in $R$ will be maximal.
My idea was to prove the integral domain $R/p$ (if $p$ is a prime ideal) was a field as for any ideal $P$, $R/P$ will be a field iff $P$ is maximal in $R$. But how can I use the fact that $R$ is finite dimensional over $K$? I don't understand.
$A:=R/p$ is also finite dimensional and has no zero divisors.
Take any nonzero $a\in A$ and consider its powers $1,a, a^2,\dots$, these are linearly dependent. Take the least $n\in\Bbb N$ giving $\lambda_na^n+\dots+\lambda_0=0$.
Since we can cancel out $a$, the constant term $\lambda_0$ is nonzero.
Then dividing by $-\lambda_0$ and pulling out $a$, we arrive to $a\cdot f(a)=1$ for a specific polynomial $f$, yielding an inverse for $a$.