The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm, named after its creator, IBM scientist Hans Peter Luhn, is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers,
In this example I am testing four different credit card numbers. Two of them are real and two of them are fake.
This method implemets the algortihm, taking in a string and outputing a boolean.
All of the code can be seen HERE