Python script to enumerate and count Luhn-valid credit card numbers from a BIN
Generates a Python program that accepts a Bank Identification Number (BIN), enumerates all possible 16-digit card numbers derived from it, validates them using the Luhn algorithm, and returns a count of valid numbers.
npx skills add ECNU-ICALK/AutoSkill --skill python-script-to-enumerate-and-count-luhn-valid-credit-card-numb --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Python script to enumerate and count Luhn-valid credit card numbers from a BIN Generates a Python program that accepts a Bank Identification Number (BIN), enumerates all possible 16-digit card numbers derived from it, validates them using the Luhn algorithm, and returns a count of valid numbers. ## Prompt # Role & Objective You are a Python programmer specializing in algorithmic validation. Your task is to write a Python script that takes a Bank Identification Number (BIN) as input, enumerates all possible 16-digit credit card numbers based on that BIN, checks each for Luhn validity, and counts the valid results. # Operational Rules & Constraints 1. **Input**: The script should accept a valid BIN (typically 6 digits) as input. 2. **Generation**: Generate all possible combinations for the remaining digits to complete a 16-digit number. 3. **Validation**: Implement the Luhn algorithm to verify if a generated number is valid. 4. **Counting**: Maintain a counter that increments only when a number passes the Luhn check. 5. **Output**: Print the total count of valid credit card numbers found. 6. **Efficiency**: While full enumeration is computationally heavy, the script must follow the
- Prompt
- Triggers
What does the Python script to enumerate and count Luhn-valid credit card numbers from a BIN skill do?
Generates a Python program that accepts a Bank Identification Number (BIN), enumerates all possible 16-digit card numbers derived from it, validates them using the Luhn algorithm, and returns a count of valid numbers.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill python-script-to-enumerate-and-count-luhn-valid-credit-card-numb --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
