fork download
  1. import math
  2. for res in range(53,65):
  3. n=1
  4. for i in range(64):
  5. n=n*2
  6. if i == res-1:
  7. n=n-1
  8. print(n, end=' ')
  9. while n%2 == 0:
  10. n //= 2
  11.  
  12. n_2 = n+1
  13. n_2_log = math.log2(n_2)
  14. print(res, end=' ')
  15. print(n_2, end=' ')
  16. print(n_2_log, end=' ')
  17. print(int(n_2_log))
  18.  
Success #stdin #stdout 0.05s 9836KB
stdin
Standard input is empty
stdout
18446744073709549568 53 9007199254740992 53.0 53
18446744073709550592 54 18014398509481984 54.0 54
18446744073709551104 55 36028797018963968 55.0 55
18446744073709551360 56 72057594037927936 56.0 56
18446744073709551488 57 144115188075855872 57.0 57
18446744073709551552 58 288230376151711744 58.0 58
18446744073709551584 59 576460752303423488 59.0 59
18446744073709551600 60 1152921504606846976 60.0 60
18446744073709551608 61 2305843009213693952 61.0 61
18446744073709551612 62 4611686018427387904 62.0 62
18446744073709551614 63 9223372036854775808 63.0 63
18446744073709551615 64 18446744073709551616 64.0 64