I have a little doubt in this question 25 is ignored for PF because there is 50 whose PF have already 25 in 5^2 2^1 ?
\operatorname{lcm} (a,b,c) = \operatorname{lcm}\left (\operatorname{lcm}(a,b), c \right)
So yes, you’re on the right track