X-Git-Url: https://git.distorted.org.uk/~mdw/rhodes/blobdiff_plain/2fb3f7e2bf2c444707ce5a81f0b54260d240f4bf..b93ad432a05ead513aae2691dc45885202bb54ed:/rhodes diff --git a/rhodes b/rhodes index 092e97a..8152999 100755 --- a/rhodes +++ b/rhodes @@ -490,7 +490,8 @@ def step(dir, cmd, *args): p, n = C.MP(pstr), C.MP(nstr) qq.append(p**e) nn.append(n) - n = C.MPCRT(qq).solve(nn) + if len(qq) == 1: n = nn[0] + else: n = C.MPCRT(qq).solve(nn) ## One last check that this is the right answer. xx = G.pow(g, n)