17. Use 1024 small cubes with an edge length of 1 to form a rectangular prism with a volume of 1024. If all six faces of the rectangular prism are painted, then the maximum number of small cubes that have none of their six faces painted is $\qquad$ .
【Solution】Solution: Since $1024=2^{10}=8 \times 8 \times 16$
$$
\begin{aligned}
& (8-2) \times(8-2) \times(16-2) \\
= & 6 \times 6 \times 14 \\
= & 504
\end{aligned}
$$

Answer: The maximum number of small cubes with none of the six faces painted is 504. Therefore, the answer is: 504.