Integer Persistence, Product - MATLAB Cody - MATLAB Central

Problem 60181. Integer Persistence, Product

Difficulty:Rate
Let's construct a sequence as follows: is a given natural number, and is the product of the digits of . The persistence of is defined as the smallest index n such that .
Complete the function persistance(u0) which, for a given , returns its persistence.

Solution Stats

87.5% Correct | 12.5% Incorrect
Last Solution submitted on Feb 28, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers13

Suggested Problems

More from this Author53

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page