Format integers Sergey Svistunov

Compute a checksum over the decimal representations of binary integers as fast as possible.

Input: 250 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: A uint64 checksum computed as:

CRC = sum of number_crc(n) for each n

where number_crc(n) converts n to its decimal string and sums ascii(digit) * position over each digit (0-indexed from the left).

Example: For n = 42, the decimal string is "42", so number_crc(42) = ascii('4') * 0 + ascii('2') * 1 = 52 * 0 + 50 * 1 = 50.

Back to listJul 26, 2025 22:01zielajzielajScore: 25,061Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 27, 2025 15:1624,995151,561,628122,475,00002,326,528
2Jul 26, 2025 22:4724,999148,236,556122,494,00002,465,792
3Jul 26, 2025 22:4725,000151,549,366122,499,00002,293,760
4Jul 26, 2025 22:4725,007154,503,990121,529,0001,004,0002,465,792
5Jul 26, 2025 22:4725,008149,353,967122,539,00002,326,528
6Jul 26, 2025 22:4725,008145,309,093122,539,00002,338,816
7Jul 26, 2025 22:4725,014153,686,549122,569,00002,338,816
8Jul 26, 2025 22:4725,037148,166,602121,685,000997,0002,461,696
9Jul 26, 2025 22:4725,041148,509,069120,704,0001,995,0002,314,240
10Jul 27, 2025 15:1625,045150,867,241120,725,0001,995,0002,469,888
11Jul 27, 2025 15:1625,061145,934,263120,804,0001,996,0002,478,080
12Jul 26, 2025 22:0125,500148,740,420123,953,000999,0002,461,696
13Jul 26, 2025 22:0125,512157,488,434124,007,0001,000,0002,465,792
14Jul 26, 2025 22:0125,514152,001,142123,017,0002,000,0002,314,240
15Jul 26, 2025 22:0125,518148,664,815124,039,0001,000,0002,314,240
16Jul 26, 2025 22:0125,518151,980,316123,039,0002,000,0002,441,216
17Jul 26, 2025 22:0125,519148,550,241124,041,0001,000,0002,289,664
18Jul 26, 2025 22:0125,522145,921,810123,057,0002,000,0002,469,888
19Jul 26, 2025 22:0125,539149,059,222122,137,0003,003,0002,457,600
20Jul 26, 2025 22:0126,322151,814,526125,981,0002,999,0002,306,048
21Jul 26, 2025 22:4726,818156,920,105131,407,00002,314,240