I would like to know the cohomology groups $\mathrm H^\bullet(\mathrm B^n(\mathbb Z/2);\mathbb Z/2)$. I assume that this is a standard computation, but I'm not sure where to look up the answer (and, not being a great algebraic topologist, I'm not sure how to do the computation myself).
Note that by induction $\mathrm B^{n-1}(\mathbb Z/2)$ is an $E_\infty$ group, so $\mathrm B^n(\mathbb Z/2) = \mathrm B(\mathrm B^{n-1}(\mathbb Z/2))$ exists, and is an $E_\infty$ group. Thus $\mathrm H^\bullet(\mathrm B^n(\mathbb Z/2);\mathbb Z/2)$ is a Hopf algebra. By Hurewicz theorem, it begins (in dimensions) $1, 0,\dots,0,1,\dots$, where the first cohomology class occurs in degree $n$. I assume that the whole $\mathrm H^\bullet(\mathrm B^n(\mathbb Z/2);\mathbb Z/2)$ is $(\mathbb Z/2)[x]$ where $x$ has cohomological degree $n$, so that $B^n(\mathbb Z/2)$ has cohomology precisely in the multiples of $n$. The latter statement is true for $n=0$ (although the description qua polynomial algebra needs modification), and my whole assumption does hold when $n=1$.
Note also that $B^n(\mathbb Z/2)$ classifies $\mathrm H^n(-;\mathbb Z/2)$, so I'm equivalently asking:
What is the set $\pi_0\mathrm{maps}(B^n(\mathbb Z/2),B^m(\mathbb Z/2))$?