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 listMay 11, 2026 21:49Aleksei ShahoikaAleksei ShahoikaScore: 15,568Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2026 21:5115,47023,107,15913,614,00002,113,536
2May 11, 2026 21:5115,50424,130,21613,644,00002,113,536
3May 11, 2026 21:5115,52623,003,73913,663,00002,113,536
4May 11, 2026 21:5115,54522,513,61213,680,00002,113,536
5May 11, 2026 21:5115,56823,642,14313,700,00002,113,536
6May 11, 2026 21:5115,57122,654,21913,703,00002,113,536
7May 11, 2026 21:5115,61222,281,22813,739,00002,113,536
8May 11, 2026 21:5115,65722,476,30813,779,00002,113,536
9May 11, 2026 21:5115,74822,787,79813,859,00002,113,536