We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description Given a list of payment card numbers, output valid if it passes the Luhn check and invalid otherwise.
valid
invalid
Example input
4242 4242 4242 4242 4242 4244 4242 4242 5555 5555 5555 4444 5555 5555 5555 5444 3566 0020 2036 0505 3656 0020 2036 0505
Example output
valid invalid valid invalid valid invalid
We might stick to the most common 16 digit card numbers, or we might allow any length.
The text was updated successfully, but these errors were encountered:
Maybe we just output the valid ones like in Pangram Grep? Choosing specific strings to represent booleans feels out of spirit for this site.
Sorry, something went wrong.
No branches or pull requests
Description
Given a list of payment card numbers, output
valid
if it passes the Luhn check andinvalid
otherwise.Example input
Example output
We might stick to the most common 16 digit card numbers, or we might allow any length.
The text was updated successfully, but these errors were encountered: