Cleaned up the implementation of computeCRC and isPrime.