make sure n is not prime before carmichael testing