Yeah, sure. There is one class per genus with discriminant $-96.$ That is, $24$ is one of Euler's convenient numbers, often called idoneal; see pages 36 and 59-63 in COX
Discr -96 = 2^5 * 3 class number 4
all
96: < 1, 0, 24> Square 96: < 1, 0, 24>
96: < 3, 0, 8> Square 96: < 1, 0, 24>
96: < 4, 4, 7> Square 96: < 1, 0, 24>
96: < 5, 2, 5> Square 96: < 1, 0, 24>
squares
96: < 1, 0, 24>
Once $p \equiv 1 \pmod {24},$ we have $(-6|p) = 1$ and $(-96|p) = 1.$ One of the four forms above integrally represents $p,$ and that must be the first in order to get $1 \pmod 8.$ Here are the first few primes represented, ignore the initial $1.$
jagy@phobeusjunior:~/old drive/home/jagy/Cplusplus$ ./primego
Input three coefficients a b c for positive f(x,y)= a x^2 + b x y + c y^2
1 0 24
Discriminant -96
Modulus for arithmetic progressions?
96
Maximum number represented?
2000
1, 73, 97, 193, 241, 313, 337, 409, 433, 457,
577, 601, 673, 769, 937, 1009, 1033, 1129, 1153, 1201,
1249, 1297, 1321, 1489, 1609, 1657, 1753, 1777, 1801, 1873,
1993,