added cntPrimes and the fast primechecker