import tlslite.utils.cryptomath as cryptomath n = cryptomath.getRandomPrime(200, False) print (n,) import tlslite.utils.cryptomath as cryptomath n = 1316313479575724008406254458954831022206765279617514697838759L print cryptomath.isPrime(n, iterations = 20) n = 1316313479575724008406254458954831022206765229617514697838759L print cryptomath.isPrime(n, iterations = 20)