On the diophantine equation x2+3=pyn