1 isn't a prime number
You should correct the test suite. 1 isn't a prime number.
Correct the test suite 1 is not prime number.
1 is not a prime number, in order to fulfill with the fundamental theorem of arithmetic:
I removed the test case where n==2, since 1 is indeed not a prime number. I also added a random test case, so the problem is not so easily cooked by knowing all the test cases.
Well I think number 1 is not a prime number, but I need to pass the test. So I wander all the right answer may be possibly wrong since you have 1.
IMHO 1 is not a prime, so that on input n=2 the correct answer should be  and not 1.
you still not change the wrong test suite:4.1 is not a prime.
agree with bainhome
Replace NaNs with the number that appears to its left in the row.
Remove the polynomials that have positive real elements of their roots.
Least common multiple of many numbers
04 - Scalar Equations 1
Compare two input matrices
Find number of days
Calculate the area of a triangle between three points
Replace Vector Elements
mathematics , probability problem
Given a number find two variables
Find the treasures in MATLAB Central and discover how the community can help you!
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