Quote:
Originally posted by fusionx
Any idea how it works? I'm trying to derive an algorithm that explains it and can't get it
|
It's not that difficult... When you multiply the first 3 digits by 80 and then by 250, you've basically got your XXX number to XXX0000 (because you'll divide by 2 later). You've also added 1 to the second result and multiplied that by 250, and then later subtracted 250, negating that. The adding your last 4 digits twice was negated by dividing by 2 at the end as well.