Suppose that $G$ is a finite group and $V$ is a (complex) irreducible representation of $G$, that is, for any $g\in G$ we have $gV=V$ (here we use notation $gv$ for the action of element $g$ on vector $v$ instead of, for example, $\rho(g)v$, where $\rho\colon G\to\operatorname{End} V$).
There is a natural embedding of the group algebra $\Phi\colon\mathbb{C}[G]\hookrightarrow\operatorname{End} V$ which is defined by the formula $$ \Phi\left(\sum_{g\in G}c_g\cdot g\right)(v)=\sum_{g\in G}c_g\cdot gv. $$
I found somewhere (can't remember now) that $V$ is irreducible iff $\Phi$ is surjective, i. e. every linear operator on $V$ can be realised as an element of $\mathbb{C}[G]$, but I don't know how to prove that.
The "if" part is easy. Indeed, if $V$ is reducible, then there is a $G$-invariant subspace $W\subsetneq V$ and we can take projection $P\in\operatorname{End} M$ onto $U$, where $U\in W$ such that $U\oplus W=V$ (and define $P|_{U}=\operatorname{id}_{U}$ and $P|_{W}=0$). It's clear that for any $a\in\mathbb{C}[G]$ we have $\operatorname{Im}\Phi(a)\subset W$, so there is no $a\in\mathbb{C}[G]$ such that $\Phi(a)=P$.
Thus, it remains to prove the "only if" part. Any ideas? I am a beginner in the representation theory, so any help would be appreciated.