inclusive sqrt in isprime