View Single Post
  #15  
Old 01-30-2020, 16:50
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 836
Rept. Given: 47
Rept. Rcvd 52 Times in 32 Posts
Thanks Given: 742
Thanks Rcvd at 1,148 Times in 531 Posts
chants Reputation: 52
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)