Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92) - MATLAB Cody - MATLAB Central

Problem 1084. Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)

Difficulty:Rate

Given a number n, return the terminal value of the number chain formed by summing the square of the digits. According to the Project Euler problem, this number chain always terminates with either 1 or 89.

Project Euler Problem 92: Link

Solution Stats

60.04% Correct | 39.96% Incorrect
Last Solution submitted on Feb 23, 2025

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
3
5

Problem Recent Solvers230

Suggested Problems

More from this Author56

Community Treasure Hunt

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

Start Hunting!
Go to top of page