Luhn algorithm is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers, National Provider Identifier numbers.
luhn.py --generate 16
or luhn.py -g 16
luhn.py --check 8615
or luhn.py -c 8615