Problem 51950. Find the smallest integer m such that n divides m!

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

40.48% Correct | 59.52% Incorrect
Last Solution submitted on Apr 24, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers14

Suggested Problems

More from this Author255

Community Treasure Hunt

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

Start Hunting!