• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

User:QuickQuokka/sandbox

  • User page
  • Talk
  • Language
  • Watch
  • Edit
< User:QuickQuokka

Step-by-step Luhn algorithm validation

Card number:

Card number:

Reset Start Next step Complete

Step 1: Extract digits and identify positions
Starting from the right, every second digit (excluding check digit) will be doubled.
Step 2: Double every second digit
Multiply alternate digits by 2, starting from the second-to-last digit.
Step 3: Handle two-digit results
If doubling produces a two-digit number, subtract 9 (or add the digits).
Step 4: Sum all digits
Add all the processed digits together.
Step 5: Check validity
If the sum is divisible by 10, the number is valid.

0

Retrieved from "https://en.wikipedia.org/w/index.php?title=User:QuickQuokka/sandbox&oldid=1300766561"
Last edited on 16 July 2025, at 08:10

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 16 July 2025, at 08:10 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop