Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Found the answer in IRC (thanks, saraedum, few_)

p = ZZ('0x2199 ... 5b')

If the number is pretty big you could also read it from a file:

f = open('/tmp/p.txt')
p = ZZ('0x' +

This assumes that you have a file p.txt containing the hex string with the whitespaces stripped.

hope that helps