Query about Question 2 from "PrepSwift: Factors of Factorials" [3656]

What’s the quickest way to calculate such answers? We absolutely need to write down the entire factorial and cross-check, right? Or am I using a longer method?