Ask Your Question

Revision history [back]

Here is a way, based on the example is2pow from the documentation:

$ sage -c 'load("power2.spyx"); print(is2pow(12))'
Compiling ./power2.spyx...
False