Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 4;
tf_correct = true;
assert(isequal(isSmith(x),tf_correct ))
|
2 | Pass |
%%
x = 265;
tf_correct = true;
assert(isequal(isSmith(x),tf_correct ))
|
3 | Pass |
%%
x = 588;
tf_correct = true;
assert(isequal(isSmith(x),tf_correct ))
|
4 | Pass |
%%
x = 1086;
tf_correct = true;
assert(isequal(isSmith(x),tf_correct ))
|
5 | Pass |
%%
x = 4937775;
tf_correct = true;
assert(isequal(isSmith(x),tf_correct ))
|
6 | Pass |
%%
x = 5;
tf_correct = false;
assert(isequal(isSmith(x),tf_correct ))
|
7 | Pass |
%%
x = 1000;
tf_correct = false;
assert(isequal(isSmith(x),tf_correct ))
|
8 | Pass |
%%
x = 94.1;
tf_correct = false;
assert(isequal(isSmith(x),tf_correct ))
|
9 | Pass |
%%
x = 202.689;
tf_correct = false;
assert(isequal(isSmith(x),tf_correct ))
|
10 | Pass |
%%
x = pi;
tf_correct = false;
assert(isequal(isSmith(x),tf_correct ))
|
11 | Pass |
%%
x = -4;
tf_correct = false;
assert(isequal(isSmith(x),tf_correct ))
|
Project Euler: Problem 4, Palindromic numbers
245 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
547 Solvers
299 Solvers
Circular Primes (based on Project Euler, problem 35)
141 Solvers
Given a 4x4 matrix, swap the two middle columns
516 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!