First, calculate if it is possible to cover the 'bottom' of the prism with 1/4in cubes, as shown below
Therefore, to cover the bottom of the prism one needs
360 cubes.
Now, considering the height of the prism,
Thus, in total, one requires,
4680 cubes.
The answer is 4680 small cubes