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 listFeb 15, 2026 00:41zielajzielajScore: 3,491Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2026 00:423,40715,328,0771,999,000999,0002,441,216
2Feb 15, 2026 00:423,42721,139,9482,011,0001,005,0002,445,312
3Feb 15, 2026 00:413,45122,156,6252,025,0001,012,0002,433,024
4Feb 15, 2026 00:413,49120,863,6662,048,0001,024,0002,445,312
5Feb 15, 2026 00:423,86524,273,3003,401,00002,437,120
6Feb 15, 2026 00:414,28920,471,7553,774,00002,441,216