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:))
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.
Check if sorted
Sorted highest to lowest?
02 - Vector Variables 3
04 - Scalar Equations 2
Create sequnce 1 4 9 16 25.........
multiple of nine?
Number of occurrences of letter in a text
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office