For an ideal transformer, power is perfectly conserved between the primary and secondary stages ($P_{\text{primary}} = P_{\text{secondary}}$). The secondary power is $P_s = \frac{V^2}{R} = \frac{8^2}{0.4} = \frac{64}{0.4} = 160\text{ W}$. Since it is a $20:1$ step-down transformer, the primary voltage must be $20 \times 8 = 160\text{ V}$. Using $P = VI$, the primary current is simply $\frac{160\text{ W}}{160\text{ V}} = 1\text{ A}$!