First time here? Check out the FAQ!
answered 2019-12-19 12:28:04 +0100
Here is a way, based on the example is2pow from the documentation:
is2pow
$ sage -c 'load("power2.spyx"); print(is2pow(12))' Compiling ./power2.spyx... False