Let $a,b,c,d$ be integers $>-1$. Let $p$ be a given prime. How to find the number of solutions to $p = (d^2-2ad+b^2-2ab+2a^2)(d^2-2cd+2c^2-2bc+b^2)$ ? I assumed that this polynomial above does not have a constant factor. If it does however I wonder about the same polynomial divided by the constant factor.
Another question is ; let $w$ be a positive integer. Let $f(w)$ be the number of primes of type prime = $(d^2-2ad+b^2-2ab+2a^2)(d^2-2cd+2c^2-2bc+b^2)$ below $w$. How does the function $f(w)$ behave ? How fast does it grow ? Are those primes of type $A$ $mod$ $B$ for some integers $A$ and $B$ ? How to deal with this ?
Can this be solved without computing the class number ?
First of all, you want to factor the terms in your product:
$$p = \left[(d-a)^2+(b-a)^2\right]\left[(d-c)^2+(b-c)^2\right].$$
Since $p$ is prime, we immediately get that one of these factors must be 1, and that $p\equiv 1\pmod 4$ if $p$ is odd.
We can assume WLOG that $c=b$ and $d=b\pm 1$. Then $$p = (b-a\pm 1)^2 + (b-a)^2 = 2(b-a)^2 \pm 2(b-a)+1,$$ so if a prime is of your form, it is in fact odd, and the sum of two consecutive squares.
The distribution of primes of the form $2n^2+2n+1$, or even if there are infinitely many such primes, was still an open question as of 1962; I'm not aware of more recent results.
I'm afraid I don't understand what you mean by constant factors.