Problem 83. Prime factor digits
Solution Stats
Problem Comments

2 Comments
I think the explanation in the problem statement is a bit sparse. The numbers in the table do not represent prime numbers per se: they represent indices on prime numbers, whose ultimate product yields the value n.
See http://mathworld.wolfram.com/PrimeFactorization.html
The inbuilt function factors() was pretty helpful for this problem :)
Solution Comments

1 Comment
nice problem

1 Comment
Nice!

1 Comment
I've been trying to submit an answer to this for over three hours. Other problems work fine, but this one keeps saying the server is offline.

1 Comment
I do not understand how this code passes the test.

1 Comment
How this is a solution

2 Comments
tabulate code is not working. I got the correct results but I am getting error "Undefined function 'tabulate' for input arguments of type 'double"
Tabulate could probably be made to work here, but I recall that Cody does not allow toolbox functions, and tabulate lives in the stats toolbox. I'd guess the logic is that not everyone has all toolboxes, so a solution that uses some tool that others cannot use would not be fair to those others.

1 Comment
Definitely used a bit of a work around in this one. Sorry for that!

1 Comment
great problem...

1 Comment
can't believe 'deblank' can be used in this way
Problem Recent Solvers1253
Suggested Problems

Maximum running product for a string of numbers
1419 Solvers

1216 Solvers

Create a cell array out of a struct
827 Solvers

Back to basics 9  Indexed References
407 Solvers

589 Solvers
More from this Author95
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!