Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

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

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listOct 9, 2026 18:24highload-churnerhighload-churnerScore: 10,988Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2026 18:2710,93421,380,5649,622,000020,480
2Oct 9, 2026 18:2710,96520,092,6639,650,000024,576
3Oct 9, 2026 18:2710,96920,133,7929,653,000028,672
4Oct 9, 2026 18:2710,97620,000,4309,659,000028,672
5Oct 9, 2026 18:2710,98820,201,3759,670,000024,576
6Oct 9, 2026 18:2711,00120,624,4539,681,000020,480
7Oct 9, 2026 18:2711,01920,645,0459,697,000024,576
8Oct 9, 2026 18:2711,05623,147,2238,636,0001,094,00028,672
9Oct 9, 2026 18:2711,07621,844,4619,747,000020,480