For any pair of integers m and n , define Km,n:={a2+mab+nb2|a,b∈Z}.
11d9dcbad4adff69f2a5e382a7aa6" title="Click to view the MathML source">Km,n is a semi-group with usual product of integers, for any pair of integers m and n.
A prime number p can be expressed as p=a2±ab−b2 with integers a and b, if and only if, p is congruent to 0, 1 and −1 modulo 5.
A prime number p can be expressed as p=a2±ab+b2 with integers a and b, if and only if, p is congruent to 0 and 1 modulo 3.