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 22, 2026 15:49Josu San MartinJosu San MartinScore: 113,683Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 22, 2026 19:31113,585583,968,189554,568,0001,998,0002,371,584
2Jan 22, 2026 19:31113,586584,568,930554,573,0001,998,0002,379,776
3Jan 22, 2026 21:00113,595581,774,426553,617,0002,997,0002,269,184
4Jan 22, 2026 19:31113,599582,059,787555,637,000999,0002,269,184
5Jan 22, 2026 19:31113,617580,594,999554,725,0001,999,0002,371,584
6Jan 22, 2026 15:49113,621584,988,416555,744,000999,0002,273,280
7Jan 22, 2026 21:00113,627583,851,381553,776,0002,998,0002,269,184
8Jan 22, 2026 19:31113,629584,306,506553,783,0002,998,0002,269,184
9Jan 22, 2026 15:49113,643582,132,085555,854,000999,0002,269,184
10Jan 22, 2026 21:00113,648580,796,171553,875,0002,999,0002,269,184
11Jan 22, 2026 15:49113,649586,156,440553,880,0002,999,0002,363,392
12Jan 22, 2026 19:31113,652588,287,461554,894,0001,999,0002,367,488
13Jan 22, 2026 21:00113,654577,844,710554,908,0001,999,0002,363,392
14Jan 22, 2026 19:31113,660578,862,426554,933,0001,999,0002,269,184
15Jan 22, 2026 21:00113,668578,973,237553,975,0002,999,0002,367,488
16Jan 22, 2026 20:33113,683585,796,504553,045,0004,000,0002,482,176
17Jan 22, 2026 21:00113,689582,724,769554,077,0003,000,0002,363,392
18Jan 22, 2026 21:00113,690581,644,427556,081,0001,000,0002,269,184
19Jan 22, 2026 19:31113,692582,801,952556,089,0001,000,0002,269,184
20Jan 22, 2026 15:49113,747583,723,015555,364,0001,997,0002,367,488
21Jan 22, 2026 19:31113,755583,768,243555,401,0001,997,0002,269,184
22Jan 22, 2026 20:33113,756583,158,683557,406,00002,269,184
23Jan 22, 2026 15:49113,758586,065,233555,417,0001,997,0002,371,584
24Jan 22, 2026 21:00113,764585,908,545557,446,00002,367,488
25Jan 22, 2026 15:49113,793584,131,986552,591,0004,996,0002,269,184
26Jan 22, 2026 20:33114,003585,229,832557,614,000999,0002,269,184
27Jan 22, 2026 15:49114,030586,949,878555,750,0002,998,0002,269,184
28Jan 22, 2026 15:49114,072582,775,773556,952,0001,999,0002,269,184
29Jan 22, 2026 15:49114,175587,753,217557,459,0001,998,0002,371,584
30Jan 22, 2026 21:00114,449586,670,630558,802,0001,999,0002,260,992