I try
n.set_bit(7)
No set_bit, clear_bit methods for n. Next I try clear by bit mask
x = 14
n = 1
mask = ~(1 << n)
but ~ means in sage 1/x
Is good solution using subtraction? Fore example 2^256 - 1 - 2^32
1 | initial version |
I try
n.set_bit(7)
No set_bit, clear_bit methods for n. Next I try clear by bit mask
x = 14
n = 1
mask = ~(1 << n)
but ~ means in sage 1/x
Is good solution using subtraction? Fore example 2^256 - 1 - 2^32