Problem 83. Prime factor digits
Solution Stats
Problem Comments
-
5 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 :)
I'm sure Test 4 & 6 are incorrect!
@Peter, what makes you think so?
@Dyuman Joshi,
I was wrong! My thinking was wrong!
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 Solvers1769
Suggested Problems
-
Back to basics 9 - Indexed References
427 Solvers
-
446 Solvers
-
Basics: 'Find the eigenvalues of given matrix
385 Solvers
-
Celsius to Fahrenheit converter
546 Solvers
-
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
914 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!