Cody

Solution 1744819

Submitted on 7 Mar 2019 by Alfonso Nieto-Castanon
  • Size: 56
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
tic for i = 1 : 150 s = num2str([randi(9),randi([0, 9], 1, i)],-6); t = java.math.BigInteger(s); a = big_integer_sqrt(char(t.pow(2))); assert(isequal(a, char(s))); end toc

Elapsed time is 4.880806 seconds.