Problem 52664. List the Moran numbers
Solution Stats
Problem Comments
-
2 Comments
@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.
I believe I have the right solution but it is not fast enough, can anyone advise me on how to get the digit sum without using a for loop?
Solution Comments
Show commentsProblem Recent Solvers22
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1970 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2516 Solvers
-
242 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
442 Solvers
-
110 Solvers
More from this Author316
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!