If I'm reading the problem statement right, I think either the answer to test case 2 should be 867 (123^3 = 1860867.) or n=2 (123^2=15129).
James, you are correct. Problem statement and test suite have been fixed.
Project Euler: Problem 4, Palindromic numbers
266 Solvers
middleAsColumn: Return all but first and last element as a column vector
399 Solvers
Convert from Base 10 to base 5
207 Solvers
Simple equation: Annual salary
3821 Solvers
433 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!