Everyone in the comments seems to agree that negative numbers aren't prime.
The definition given in the description: "Per Wikipedia, a prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself."
Is valid for negative numbers (e.g. -5 has divisors: 1, 5, -1, -5 i.e. the only positive divisors are 1 and itself), I think the language "positive divisors" makes it clear they're considering negative numbers here.
Regardless of what common usage is, I think the definition should match the test cases. Clarifying the definition would be an easy fix.
You're right! Not a close reading on my part.
Even if -5 was a natural number (which it isn't):
Is -5 a natural number? The definition you quoted mentions natural numbers. Are negative numbers such?
Everyone in the comments seems to agree that negative numbers aren't prime.
The definition given in the description: "Per Wikipedia, a prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself."
Is valid for negative numbers (e.g. -5 has divisors: 1, 5, -1, -5 i.e. the only positive divisors are 1 and itself), I think the language "positive divisors" makes it clear they're considering negative numbers here.
Regardless of what common usage is, I think the definition should match the test cases. Clarifying the definition would be an easy fix.