A certain number of unit cubes are put together in the form of a right rectangular prism. The six faces of the prism are then painted. When the unit cubes are taken apart, it is found that 363 of them have no paint on them. What is the volume of the prism that was formed?
(Source: Mathematics Teaching in the Middle School, Feb 1998)