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 listJan 17, 2026 16:54Josu San MartinJosu San MartinScore: 124,956Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 15:28124,623637,649,535609,653,000999,0002,273,280
2Jan 17, 2026 14:32124,655636,163,048604,812,0005,998,0002,281,472
3Jan 17, 2026 15:28124,656635,780,048609,815,000999,0002,269,184
4Jan 17, 2026 14:32124,695642,408,430608,005,0003,000,0002,281,472
5Jan 17, 2026 15:28124,712647,512,843609,090,0002,000,0002,281,472
6Jan 17, 2026 14:32124,897641,180,145608,995,0002,999,0002,281,472
7Jan 17, 2026 14:32124,900636,448,409610,008,0002,000,0002,281,472
8Jan 17, 2026 16:54124,902644,357,715609,021,0003,000,0002,281,472
9Jan 17, 2026 15:28124,902639,770,607611,019,0001,000,0002,281,472
10Jan 17, 2026 15:28124,912642,355,346608,068,0004,000,0002,281,472
11Jan 17, 2026 15:28124,956638,639,800607,288,0004,994,0002,281,472
12Jan 17, 2026 14:32124,957640,139,005609,295,0002,996,0002,281,472
13Jan 17, 2026 15:28124,967638,824,226611,336,0001,000,0002,281,472
14Jan 17, 2026 16:54125,013642,968,706606,570,0005,995,0002,281,472
15Jan 17, 2026 15:28125,721644,514,108613,032,0003,000,0002,265,088
16Jan 17, 2026 15:28125,783643,057,109613,340,0002,996,0002,281,472
17Jan 17, 2026 14:32125,790640,580,472615,373,000998,0002,265,088
18Jan 17, 2026 16:54125,791648,451,251613,382,0002,996,0002,269,184
19Jan 17, 2026 14:32125,792642,382,505614,383,0001,997,0002,281,472
20Jan 17, 2026 14:32125,822642,810,882614,532,0001,998,0002,269,184
21Jan 17, 2026 14:32125,843644,510,196614,633,0001,998,0002,281,472