Problem 52664. List the Moran numbers
The quotient of a Moran number and its digit sum is prime. For example, 117 and 481 are Moran numbers because 117/(1+1+7) is 13 and 481/(4+8+1) = 37, and both 13 and 37 are prime.
Write a function to list the Moran numbers less than or equal to the input number.
Solution Stats
Problem Comments
-
1 Comment
GeeTwo
on 1 Dec 2024
@Tim, thanks for the idea of using ismember(). It greatly simplified my already simplest solution to date. All I did before was squeeze a literal implementation and make it work just fast enough to fit the one-minute filter..Your inspiration took me from four statements to two.
Solution Comments
Show commentsGroup

YouTube-inspired
- 15 Problems
- 2 Finishers
- Compute the nth Pythagorean prime
- Compute Khinchin's constant
- Find jumping medalists
- Identify prime words
- Compute a sum of Ramanujan
- List the nth term of Rozhenko’s inventory sequence
- Compute a nested cube root
- Solve an equation involving primes and fractions
- Integrate a product of gamma functions
- Count block fountains
- Integrate a power tower
- Compute a sum involving the zeta function
- Compute the area of a Q
- Find primes and integers that solve an equation
- Compute a sum
Problem Recent Solvers13
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!