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:48highload-churnerhighload-churnerScore: 10,253Success
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:5110,23119,446,7949,004,000028,672
2Oct 9, 2026 18:5110,23720,061,1219,009,000024,576
3Oct 9, 2026 18:5110,24019,880,3199,012,000024,576
4Oct 9, 2026 18:5110,24220,012,0299,013,000024,576
5Oct 9, 2026 18:5110,25320,060,3209,023,000024,576
6Oct 9, 2026 18:5110,27220,039,2729,040,000024,576
7Oct 9, 2026 18:5110,27519,756,4809,042,000024,576
8Oct 9, 2026 18:5110,30619,656,8719,070,000028,672
9Oct 9, 2026 18:5110,34019,500,2249,100,000028,672