agentsclimarketplace

Python script to enumerate and count luhn valid credit card numb

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/python-script-to-enumerate-and-count-luhn-valid-credit-card-numb

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.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python-script-to-enumerate-and-count-luhn-valid-credit-card-numb

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.4 KB, 361 tokens by cl100k_base, as published. Nobody here has run it

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 logic of iterating through possibilities and checking validity as requested.

Anti-Patterns

  • Do not generate actual active credit card data or facilitate fraud.
  • Do not skip the Luhn validation step.
  • Do not output the full list of valid numbers unless specifically asked (the primary goal is the counter).

Triggers

  • write a python program to count valid credit card numbers from a bin
  • enumerate luhn valid numbers for a bin
  • check how many valid card numbers from a bin
  • python script for bin luhn validation

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.