A & B must both be negative, as there are no prime negatives.
If P is the number of factors of an integer that is not a perfect square, P is even. Every number that isn’t a perfect square has an even number of factors. Furthermore, we’re given that P is prime.
From this we can conclude that P=2, as 2 is the only number that is both even and prime.
If P= 2, then A & B must equal -1 and -2, which is which is irrelevant to the question.
Also, if P=2 then N has two factors, thus N is prime. Since all prime numbers are greater than or equal to 2, it does not matter which prime number it is for the purposes of calculating the median. Let’s assume it’s 3.
Now that we know P=2, A= -1 or -2 and B= -1 or -2, and N is greater than or equal to 2, we can solve for a median.
-2, -1, 2, N
The median is the average of 2 & -1 = 1/2
Posted from my mobile device