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 Solvers19
Suggested Problems
-
Create a cell array out of a struct
2271 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
503 Solvers
-
Determine the number of odd integers in a vector
794 Solvers
-
Remove entire row and column in the matrix containing the input values
530 Solvers
-
Is this triangle right-angled?
6249 Solvers
More from this Author314
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!