View Single Post
  #15  
Old 01-30-2020, 16:50
chants chants is offline
Family
 
Join Date: Jul 2016
Posts: 513
Rept. Given: 5
Rept. Rcvd 34 Times in 20 Posts
Thanks Given: 434
Thanks Rcvd at 778 Times in 360 Posts
chants Reputation: 34
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)