clover/hashpan — pull request #1 by kevmo314 (2013-11-22 20:36:25+00:00)
Title: A Partial Solution

Still working on the remaining hashes. :)

Takes about 6 minutes to complete on a computing cluster that yields 350 MHash/s. Takes about 10 hours to run on my desktop which yields about 2 MHash/s.

HashDog permits forking. A call such as:
```
HashDog 412345 412346
```
will brute force all CCN's with those prefixes, so it's easy to chain them on multiple machines via ssh.

Key observations:
- There are 73 unique IIN's in the supplied PAN list. Our search space can be narrowed by restricting to these PANs.
- Calculating Luhn's checksum can be improved by precomputing sum(2 * d).
- 10^16 fits in a long, so use longs to store and manipulate CCN's.