View Single Post
  #15  
Old 01-30-2020, 16:50
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 826
Rept. Given: 47
Rept. Rcvd 50 Times in 31 Posts
Thanks Given: 737
Thanks Rcvd at 1,140 Times in 529 Posts
chants Reputation: 51
Its the formula for the last hex digit. I don't know how the first 3 digits are computed.
Code:
((input%16)+((input%4)<=1)*4+(((input-1)%4)>=2)*8)%16
So 25% of the answer at least. It works for all values you have given and should work for any possible value.
Reply With Quote
The Following 2 Users Say Thank You to chants For This Useful Post:
Abaddon (01-31-2020), mcr4ck (01-30-2020)