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 06:59Josu San MartinJosu San MartinScore: 125,618Success
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 07:01124,595639,056,758608,516,0001,998,0002,269,184
2Jan 17, 2026 06:58124,603640,950,573608,557,0001,998,0002,281,472
3Jan 17, 2026 06:58124,608636,929,051608,580,0001,998,0002,269,184
4Jan 17, 2026 07:00124,632639,369,266608,699,0001,999,0002,277,376
5Jan 17, 2026 07:01124,635636,935,197607,713,0002,998,0002,523,136
6Jan 17, 2026 06:59124,638637,185,026608,728,0001,999,0002,281,472
7Jan 17, 2026 06:58124,665641,384,549608,859,0001,999,0002,265,088
8Jan 17, 2026 07:01124,907636,685,653609,042,0003,000,0002,269,184
9Jan 17, 2026 07:01124,920637,834,135609,106,0003,000,0002,281,472
10Jan 17, 2026 06:58124,984638,481,809610,422,0001,998,0002,273,280
11Jan 17, 2026 06:58125,043639,222,975610,713,0001,999,0002,281,472
12Jan 17, 2026 07:00125,579649,199,264614,339,0001,000,0002,281,472
13Jan 17, 2026 07:01125,618648,343,213614,529,000999,0002,523,136
14Jan 17, 2026 06:58125,768643,814,043613,262,0003,001,0002,281,472
15Jan 17, 2026 06:59125,811640,514,802613,476,0002,997,0002,281,472
16Jan 17, 2026 07:01125,822641,520,084612,530,0003,996,0002,281,472
17Jan 17, 2026 07:01125,823645,936,805615,533,000999,0002,281,472
18Jan 17, 2026 07:01125,825642,936,659614,546,0001,998,0002,281,472
19Jan 17, 2026 06:58125,827644,857,910614,556,0001,998,0002,523,136
20Jan 17, 2026 07:00125,834642,631,746615,590,000999,0002,281,472
21Jan 17, 2026 06:59125,837641,611,169615,602,000999,0002,289,664
22Jan 17, 2026 07:01125,837646,620,208613,601,0002,998,0002,269,184
23Jan 17, 2026 06:58125,841641,798,262610,627,0005,996,0002,281,472
24Jan 17, 2026 06:58125,847647,360,126614,652,0001,998,0002,281,472