@allarmarju i understand my mistake
so first we have to prove n and p are co primes
let n and p not be co primes
n=xp where x is an integer
xp+p=2000 and xp=21879
x(p+1)=2000 and xp=21879
from this we donot reach to any solution
thus n and p are co primes
LCM * HCF=product of two numbers
HCF of co primes is always 1
np=21879
n+p=2000
n=2000-p
(2000-p)p=21879

solving equation we get
p=1989 and 11
but 1989 is not a prime as it is divisible by 3
11 is
so other integer is 21879 / 11=1989
so the prime no in the ans is 11 and integer is 1989
p=11 n=1989
PLS CORRECT IF WRONG