Are all negative numbers are non prime?

i wrote a code to check whether the number is prime or not ,but i got an error indicating check for negative numbers

No, a prime number cannot be negative** because prime numbers are defined as natural numbers greater than 1 with exactly two distinct positive divisors