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 23:02highload-churnerhighload-churnerScore: 6,556Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2026 00:376,51716,128,1065,735,000028,672
2Oct 10, 2026 00:376,51916,228,3685,737,000028,672
3Oct 10, 2026 00:376,54516,133,2485,760,000028,672
4Oct 10, 2026 00:376,55616,260,3255,770,000028,672
5Oct 10, 2026 00:376,55616,305,1515,770,000028,672
6Oct 10, 2026 00:376,56516,898,4305,778,000028,672
7Oct 10, 2026 00:376,57216,231,5015,784,000028,672
8Oct 10, 2026 00:376,58516,312,6045,795,000028,672
9Oct 10, 2026 00:376,66416,319,6905,865,000028,672