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.
Sort a list of complex numbers based on far they are from the origin.
4382 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1563 Solvers
717 Solvers
Split a string into chunks of specified length
519 Solvers
Unique values without using UNIQUE function
180 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!