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 in-built 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 Solvers1749
Suggested Problems
-
Find the peak 3n+1 sequence value
1777 Solvers
-
given 3 sides, find area of this triangle
771 Solvers
-
743 Solvers
-
485 Solvers
-
Convert from Fahrenheit to Celsius
16997 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!