About 136,000 results
Open links in new tab
  1. How does Luhn algorithim actually work? - Mathematics Stack …

    Jun 5, 2019 · The algorithm works only for numbers chosen so that it works. In other words, banks and other institutions that use it generate a partial identification number (in whichever …

  2. Check the validity of a South African ID number using the Luhn …

    Feb 25, 2017 · See the algorithm here: Luhn's Algorithm Verification The point is that your code is computing a check-digit and comparing it with the existing digit, but you're missing the fact that …

  3. Luhn algorithm: find how many numbers are vaild?

    Jan 8, 2020 · From Wikipedia, 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 …

  4. Simple credit card validation with Luhn's Algorithm

    Sep 12, 2021 · Most credit card issuers do use Luhn's algorithm to validate credit card numbers, but some use other algorithm, and some don't use validation at all. These would be wrongly …

  5. python - Implementation of Luhn credit card algorithm - Code …

    Dec 15, 2018 · I've implemented Luhn's algorithm for checking credit card numbers. My code works, but I wanted to learn about a more efficient and more Pythonic way of doing this. def …

  6. Optimizing Luhn check digit algorithm - Code Review Stack …

    Jun 11, 2019 · The internet as a whole and Code Review in special already provide a decent amount of implementations of the Luhn check digit algorithm. They often follow a relatively …

  7. Implementation of Luhn Algorithm - Code Review Stack Exchange

    Jul 22, 2015 · I've implemented the well known Luhn Algorithm in Python. It's a simple one, so it's good for beginners. import random from math import ceil def Luhn(digits): if digits >= 2: num =

  8. Checking the type and validity of a credit card with Luhn's …

    Jan 18, 2021 · Validity is checked using Luhn's Algorithm. Here's how the algorithm works: Multiply every other digit by 2, starting with the number’s second-to-last digit, and then add …

  9. Verify a credit card with Luhn - Code Review Stack Exchange

    Apr 21, 2020 · It involves using Luhn's Algorithm to test the validity of the Credit Card Number entered and based on a few conditions attempts to identify the Credit Card Company.

  10. Luhn algorithm for odd and even card numbers?

    Jul 4, 2022 · I am confused about when to multiply a number and when to add it. Is it inclusively every second number or is it when the number is odd? For example a 16-digit card (starting …