Cody

# Problem 1281. Fermat's Last Theorem - Fermat's conjecture

Solution 1470849

Submitted on 25 Mar 2018
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   Fail
A = 4; B = 10; y_correct = 5; assert(isequal(fermat(A,B),y_correct))

Error in solution Line: 2 Column: 7 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

2   Fail
A = 20; B = 10; y_correct = [5 10 13 15 17]; assert(isequal(fermat(A,B),y_correct))

Error in solution Line: 2 Column: 7 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

3   Fail
A = 20; B = 30; y_correct = [ 5 10 13 15 17 20 25 26 29 30 34]; assert(isequal(fermat(A,B),y_correct))

Error in solution Line: 2 Column: 7 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

4   Fail
A = 17; B = 33; y_correct = [5 10 13 15 17 20 25 26 34]; assert(isequal(fermat(A,B),y_correct))

Error in solution Line: 2 Column: 7 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.