Problem 42704. prime to each other
Solution Stats
Problem Comments
-
2 Comments
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:))
Solution Comments
-
5 Comments
I submitted this just to see if one can get away with a blatant cheat!
Until the test suite is changed, yes. Yes you can.
Well, test suite changed :)
Does the "tf = n1==27" still work? :)
My cheat does not pass new test suite, but tf = n2==123 does.
@Are Mjaavatten: Your are terrible:). I will change (improve:)) again the test-suite.
Problem Recent Solvers55
Suggested Problems
-
945 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
1708 Solvers
-
10427 Solvers
-
168 Solvers
-
118 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!