Given two integers n1, n2 greater than 1, find out if they have common divisors or are prime to each other. Return "true" if they have common divisors and "false" if they are prime to each other.
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers62
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
3068 Solvers
-
The sum of the numbers in the vector
644 Solvers
-
394 Solvers
-
Matlab Basics II - Count rows in a matrix
406 Solvers
-
Matlab Basics II - Extract last 3 elements of a vector
263 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
It seems to me that the logic of the test suite is reversed. You're asking if the numbers are coprime and yet want 0 (false) when they are.
@Guillaume: Your are right.
I re-wrote the text. The english got worse, but the clarity increased, I hope:))