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 22:34highload-churnerhighload-churnerScore: 5,745Success
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 23:555,71213,809,2595,027,000024,576
2Oct 9, 2026 23:555,73613,839,2915,048,000024,576
3Oct 9, 2026 23:555,74013,848,5395,052,000024,576
4Oct 9, 2026 23:555,74413,841,3645,055,000024,576
5Oct 9, 2026 23:555,74513,739,1995,056,000024,576
6Oct 9, 2026 23:555,76014,281,5825,069,000024,576
7Oct 9, 2026 23:555,76413,905,4775,073,000024,576
8Oct 9, 2026 23:555,76713,908,4745,075,000024,576
9Oct 9, 2026 23:555,80114,101,5665,105,000024,576