Write a function that takes an integer n and finds the smallest integer m whose factorial is divisible by n. For example, if n = 10, then the smallest factorial that is a multiple of n is 5! = 120; therefore, m = 5.

Solution Stats

44 Solutions

16 Solvers

Last Solution submitted on Jan 14, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers16

Suggested Problems

More from this Author321

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!