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 listApr 12, 2026 18:40Yuriy LyfenkoYuriy LyfenkoScore: 61,522Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 12, 2026 03:2961,383326,252,681297,782,0002,997,0002,519,040
2Apr 12, 2026 18:4061,394326,068,997297,835,0002,998,0002,289,664
3Apr 12, 2026 18:4061,398328,808,540297,850,0002,998,0002,510,848
4Apr 12, 2026 03:2961,400329,438,129297,861,0002,998,0002,289,664
5Apr 12, 2026 03:2961,441322,574,024299,059,0002,000,0002,289,664
6Apr 12, 2026 18:4061,455329,987,202300,129,0001,000,0002,289,664
7Mar 19, 2026 01:4961,468325,549,700299,193,0002,001,0002,285,568
8Mar 19, 2026 01:4961,472330,302,889299,210,0002,001,0002,285,568
9Apr 12, 2026 18:4061,496332,386,578299,326,0002,002,0002,289,664
10Apr 12, 2026 03:2961,500329,560,693299,350,0002,002,0002,338,816
11Apr 12, 2026 03:2961,522329,609,466300,459,0001,001,0002,510,848
12Apr 12, 2026 18:4062,168333,447,639302,626,0001,997,0002,510,848
13Apr 12, 2026 18:4062,368336,236,303303,606,0001,997,0002,289,664
14Apr 12, 2026 18:4062,373337,960,475304,628,000998,0002,289,664
15Apr 12, 2026 03:2962,439333,266,009302,951,0002,999,0002,506,752
16Apr 12, 2026 03:2963,608334,756,805309,683,0001,997,0002,359,296
17Apr 12, 2026 18:4063,632337,291,192308,801,0002,998,0002,289,664
18Mar 19, 2026 01:4963,647341,172,631308,874,0002,998,0002,285,568
19Apr 12, 2026 03:2963,649335,789,610308,881,0002,998,0002,289,664
20Apr 12, 2026 03:2963,657334,138,219308,918,0002,999,0002,338,816
21Apr 12, 2026 18:4063,663334,482,650309,952,0001,999,0002,510,848