Luhn check range
843811Oct 27 2006 — edited Oct 31 2006Hi,
I like to write a function that will take two credit cards number (valid luhn numbers) and counts how many luhn numbers exist in the range. Any pointers as to how to approach this?
I have the fuction that check if the card is a valid Luhn and also know how to commute the check digit. But not sure how to find the existing luhn between two vavid card numbers.
something like this:
public static int countRange(String startRange, String endRange)
given startRange and endRange are valid luhn numbers.
Regards,
Jenny