Card Number Validation
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
The Luhn algorithm is a simple check digit formula used to validate a variety of identification numbers.
Given my personal 16-digit payment card number (1567 5862 9046 0550), output what you bought with my credit card (assuming the number is valid according to the Luhn algorithm). The digits of each input are separated into groups of four by spaces.
To verify a 16-digit card number like XyXy XyXy XyXy XyXy, add up all the "y" digits and the digit sums of the doubles of the "X" digits. The card number is valid if this sum is divisible by 10.
Options
exec is denied
rejudge feature is enabled
now post-mortem time, all source codes will be revealed
Sample input:_
1567 5862 9046 0550
Sample output:
Fifteen 4-carat diamonds
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | xnor | 33 | 0.0459 | 2024/10/14 02:41:24 | 0B / 26B / 5B |
2 | mrapricot | 86 | 0.0477 | 2024/12/19 08:10:40 | 0B / 50B / 32B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | KrausRaus | 33 | 0.0194 | 2024/10/08 23:00:24 | 0B / 26B / 5B |
2 | #c0ffee | 33 | 0.0220 | 2024/10/10 15:57:58 | 0B / ?B / ?B |
3 | asd | 33 | 0.0200 | 2024/10/10 16:34:37 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | McBusLuck | 29 | 0.0139 | 2024/10/09 15:52:01 | 0B / 22B / 5B |
2 | Fleur | 29 | 0.0182 | 2024/10/18 16:10:14 | 0B / 22B / 5B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | McBusLuck | 24 | 0.0748 | 2024/10/09 15:51:31 | 0B / 21B / 1B |
2 | whio | 24 | 0.0696 | 2024/10/18 06:50:43 | 0B / 21B / 1B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | plcc | 22 | 0.0223 | 2024/12/25 17:30:46 | 17B / 5B / 0B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | sean | 397 | 0.1510 | 2024/10/13 22:56:25 | 0B / 272B / 125B |
2 | June | 397 | 0.1555 | 2024/10/14 02:25:55 | 0B / 272B / 125B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | sean | 5405 | 0.0152 | 2024/10/15 08:15:21 | 0B / 5405B / 0B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | McBusLuck | 32 | 2.5382 | 2024/10/09 16:19:39 | 5B / 21B / 3B |
2 | sean | 32 | 2.5368 | 2024/10/10 21:32:49 | 5B / 21B / 3B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | Nibbles | plcc | 22 | 10000 |
2 | m4 | McBusLuck | 24 | 9166 |
3 | gs2 | McBusLuck | 24 | 9166 |
4 | PHP | McBusLuck | 24 | 9166 |
5 | sed | McBusLuck | 25 | 8800 |
6 | jq | McBusLuck | 26 | 8461 |
7 | jq 1.6 | McBusLuck | 26 | 8461 |
8 | BASIC | McBusLuck | 27 | 8148 |
9 | bc | McBusLuck | 27 | 8148 |
10 | dc | McBusLuck | 27 | 8148 |
11 | AWK | McBusLuck | 29 | 7586 |
12 | xgawk | McBusLuck | 29 | 7586 |
13 | Bash | McBusLuck | 29 | 7586 |
14 | Bash (builtins) | McBusLuck | 29 | 7586 |
15 | Fish | McBusLuck | 29 | 7586 |
16 | Zsh | McBusLuck | 29 | 7586 |
17 | DOS | McBusLuck | 32 | 6875 |
18 | JavaScript | KrausRaus | 33 | 6666 |
19 | Vim | McBusLuck | 33 | 6666 |
20 | Python3 | xnor | 33 | 6666 |
21 | CLC-INTERCAL | sean | 397 | 554 |
22 | Whirl | sean | 5405 | 40 |
return to the top page