Replaced >, <, = methods with compare.

isLessThan(), isGreaterThan(), and equals() have been completely
removed. Fixed a number of small bugs. Many tests added for the
isPrime() method.